From 98728ed07ba8a3577ec3aed156bd34202750f376 Mon Sep 17 00:00:00 2001 From: seungku kim Date: Mon, 15 Jun 2015 15:21:41 +0900 Subject: [PATCH] Fix build error for x86_64 Change-Id: I5c898212fcebf9a35b0cbf6db8826e154635f96b --- packaging/bluetooth-frwk.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packaging/bluetooth-frwk.spec b/packaging/bluetooth-frwk.spec index cc6563e..21c120f 100644 --- a/packaging/bluetooth-frwk.spec +++ b/packaging/bluetooth-frwk.spec @@ -127,12 +127,14 @@ export CFLAGS="$CFLAGS -DUSB_BLUETOOTH -DTIZEN_TV" %ifarch x86_64 export CFLAGS="$CFLAGS -Wall -g -fvisibility=hidden -fPIC" -export LDFLAGS="$CFLAGS -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs" %else -export CFLAGS="$CFLAGS -fpie -DRFCOMM_DIRECT " -export LDFLAGS="$CFLAGS -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie" +export CFLAGS="$CFLAGS -fpie" +export LDFLAGS="$CFLAGS -pie" %endif +export CFLAGS="$CFLAGS -DRFCOMM_DIRECT" +export LDFLAGS="$CFLAGS -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs" + cmake . -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_LIB_DIR=%{_libdir} \ -DTZ_SYS_USER_GROUP=%TZ_SYS_USER_GROUP \ -- 2.7.4