build: use LT_INIT(pic-only) instead of forcing -fPIC.

This actually allows for the user to override the decision and at the
same time supports compilers that might not be able to use -fPIC at
all.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
This commit is contained in:
Diego Elio Pettenò 2012-06-29 13:01:29 -07:00 committed by Harald Welte
parent f3ba8abc97
commit c5f055f9e5
6 changed files with 6 additions and 6 deletions

View File

@ -13,7 +13,7 @@ AC_PROG_MAKE_SET
AC_PROG_MKDIR_P
AC_PROG_CC
AC_PROG_INSTALL
LT_INIT
LT_INIT([pic-only])
AC_CONFIG_MACRO_DIR([m4])

View File

@ -3,7 +3,7 @@
LIBVERSION=4:0:0
INCLUDES = $(all_includes) -I$(top_srcdir)/include -I$(top_builddir)/include
AM_CFLAGS = -fPIC -Wall
AM_CFLAGS = -Wall
lib_LTLIBRARIES = libosmocore.la

View File

@ -3,7 +3,7 @@
LIBVERSION=0:0:0
INCLUDES = $(all_includes) -I$(top_srcdir)/include
AM_CFLAGS = -fPIC -Wall
AM_CFLAGS = -Wall
lib_LTLIBRARIES = libosmocodec.la

View File

@ -3,7 +3,7 @@
LIBVERSION=1:0:0
INCLUDES = $(all_includes) -I$(top_srcdir)/include
AM_CFLAGS = -fPIC -Wall ${GCC_FVISIBILITY_HIDDEN}
AM_CFLAGS = -Wall ${GCC_FVISIBILITY_HIDDEN}
# FIXME: this should eventually go into a milenage/Makefile.am
noinst_HEADERS = common_vty.h

View File

@ -3,7 +3,7 @@
LIBVERSION=2:0:1
INCLUDES = $(all_includes) -I$(top_srcdir)/include
AM_CFLAGS = -fPIC -Wall ${GCC_FVISIBILITY_HIDDEN}
AM_CFLAGS = -Wall ${GCC_FVISIBILITY_HIDDEN}
# FIXME: this should eventually go into a milenage/Makefile.am
noinst_HEADERS = milenage/aes.h milenage/aes_i.h milenage/aes_wrap.h \

View File

@ -3,7 +3,7 @@
LIBVERSION=0:0:0
INCLUDES = $(all_includes) -I$(top_srcdir)/include
AM_CFLAGS = -fPIC -Wall
AM_CFLAGS = -Wall
if ENABLE_VTY
lib_LTLIBRARIES = libosmovty.la