packaging: removed '-Wl,as-needed' for build error. 19/60519/3 accepted/tizen/common/20160307.154558 accepted/tizen/ivi/20160307.111402 accepted/tizen/ivi/20160308.105710 accepted/tizen/mobile/20160307.111307 accepted/tizen/mobile/20160308.105805 accepted/tizen/tv/20160307.111320 accepted/tizen/tv/20160308.105635 accepted/tizen/wearable/20160307.111339 accepted/tizen/wearable/20160308.105651 submit/tizen/20160307.091752 submit/tizen/20160308.104824
authorDongkyun, Son <dongkyun.s@samsung.com>
Sun, 28 Feb 2016 22:23:45 +0000 (07:23 +0900)
committerDongkyun, Son <dongkyun.s@samsung.com>
Fri, 4 Mar 2016 08:09:37 +0000 (17:09 +0900)
Change-Id: I3cbe4ac0b1279da14583113544105bc7e1a75fca
Signed-off-by: Dongkyun, Son <dongkyun.s@samsung.com>
packaging/deviced.spec

index 768f0b8..baaef21 100644 (file)
@@ -248,6 +248,17 @@ Haptic Device manager library for device control (devel)
 %if %{with wayland}
 %define DPMS wayland
 %endif
+cp %{SOURCE1} .
+cp %{SOURCE2} .
+cp %{SOURCE3} .
+cp %{SOURCE4} .
+cp %{SOURCE5} .
+cp %{SOURCE6} .
+
+%build
+export CFLAGS="$(echo $CFLAGS | sed 's/-Wl,--as-needed//g')"
+export CXXFLAGS="$(echo $CXXFLAGS | sed 's/-Wl,--as-needed//g')"
+export FFLAGS="$(echo $FFLAGS | sed 's/-Wl,--as-needed//g')"
 
 %cmake . \
        -DTZ_SYS_ETC=%TZ_SYS_ETC \
@@ -272,13 +283,6 @@ Haptic Device manager library for device control (devel)
        -DUSBHOST_MODULE=%{usbhost_module} \
        #eol
 
-%build
-cp %{SOURCE1} .
-cp %{SOURCE2} .
-cp %{SOURCE3} .
-cp %{SOURCE4} .
-cp %{SOURCE5} .
-cp %{SOURCE6} .
 make %{?jobs:-j%jobs}
 
 %install