Modify spec add -lrt on centos7.
authorshuai.fu <shuai01.fu@samsung.com>
Fri, 6 Nov 2015 08:06:05 +0000 (16:06 +0800)
committeradmin <yuhuan.yang@samsung.com>
Fri, 25 Dec 2015 07:49:28 +0000 (15:49 +0800)
Signed-off-by: shuai.fu <shuai01.fu@samsung.com>
Change-Id: I8912c7123498cc182e05c9b7534ced3d579ff364

packaging/qemu-arm-static.spec

index 06ee49a99725e2a3143e4614e1f8cd0c9dc1da24..5328bc376419c7ef44cca9559ba4002c184254c0 100644 (file)
@@ -77,7 +77,7 @@ export LDFLAGS="-lrt -pthread -lgthread-2.0 -lglib-2.0"
        --disable-sdl \
        --static
 
-%if 0%{?suse_version} >= 1230 || 0%{?fedora} >= 19
+%if 0%{?suse_version} >= 1230 || 0%{?fedora} >= 19 || 0%{?centos_version} == 700
 # -lrt needs to come after -lglib-2.0 to avoid undefined mq_open, mq_xxx
 sed -i "s/-lglib-2.0/-lglib-2.0 -lrt/" config-host.mak
 %endif