[TV] Add configuration --enable-prelink 88/69988/2
authorSeonmi Jin <seonmi.jin@samsung.com>
Tue, 17 May 2016 13:09:47 +0000 (22:09 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 20 May 2016 06:33:30 +0000 (15:33 +0900)
if !USE_PRELINK
CFLAGS += -fPIC -pie

[Version] 5.0-70
[Profile] TV
[Issue Type] Build Configuration

Change-Id: I68cd5e174d3a282666d6744a2fc4ca8e9d787afa
Signed-off-by: Seonmi Jin <seonmi.jin@samsung.com>
configure.ac
packaging/pulseaudio.spec
src/Makefile.am

index 2743a73..81cfaf1 100644 (file)
@@ -719,6 +719,17 @@ AC_ARG_ENABLE(pmlock, AC_HELP_STRING([--enable-pmlock], [using Samsung power man
  ],[USE_PM_LOCK=no])
 AM_CONDITIONAL(USE_PM_LOCK, test "x$USE_PM_LOCK" = "xyes")
 
+#### pre-link option ####
+AC_ARG_ENABLE(prelink, AC_HELP_STRING([--enable-prelink], [enable pre-link feature]),
+[
+ case "${enableval}" in
+     yes) USE_PRELINK=yes ;;
+     no)  USE_PRELINK=no ;;
+     *)   AC_MSG_ERROR(bad value ${enableval} for --enable-prelink) ;;
+ esac
+ ],[USE_PRELINK=no])
+AM_CONDITIONAL([USE_PRELINK], [test "x$USE_PRELINK" = "xyes"])
+
 #### Database support ####
 
 AC_ARG_WITH([database],
index 1050d31..8463adf 100644 (file)
@@ -10,7 +10,7 @@
 Name:             pulseaudio
 Summary:          Improved Linux sound server
 Version:          5.0
-Release:          69
+Release:          70
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
 URL:              http://pulseaudio.org
@@ -252,6 +252,9 @@ NOCONFIGURE=yes ./bootstrap.sh
 %if %{with pulseaudio_udev_with_usb_only}
         --enable-udev-with-usb-only \
 %endif
+%if %{with TIZEN_PRODUCT_TV}
+        --enable-prelink \
+%endif
         --with-udev-rules-dir=%{udev_dir}/rules.d \
         --with-system-user=pulse \
         --with-system-group=pulse \
index 40c48fb..60d992f 100644 (file)
@@ -182,7 +182,10 @@ pulseaudio_SOURCES = \
                daemon/ltdl-bind-now.c daemon/ltdl-bind-now.h \
                daemon/main.c
 
-pulseaudio_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS) $(CAP_CFLAGS) $(DBUS_CFLAGS) -fPIC -pie
+pulseaudio_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS) $(CAP_CFLAGS) $(DBUS_CFLAGS)
+if !USE_PRELINK
+pulseaudio_CFLAGS += -fPIC -pie
+endif
 pulseaudio_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la $(LIBLTDL) $(CAP_LIBS)
 # This is needed because automake doesn't properly expand the foreach below
 pulseaudio_DEPENDENCIES = libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la $(PREOPEN_LIBS)