Added AM_CONDITIONAL to check if OS is Darwin (Apple) and not use the --whole-archive option if it is.
This commit is contained in:
parent
0ef8ba5259
commit
02049cb473
@ -120,6 +120,10 @@ AC_PROG_LN_S
|
||||
AC_PROG_MAKE_SET
|
||||
AC_PROG_LIBTOOL
|
||||
|
||||
dnl Detect if we are on and Apple platform
|
||||
dnl
|
||||
AM_CONDITIONAL([APPLE_PLATFORM], [test `uname -s` = Darwin])
|
||||
|
||||
dnl Decide whether or not to build binaries with profiling coverage support
|
||||
dnl
|
||||
want_profile_coverage=no
|
||||
|
||||
@ -20,10 +20,14 @@ if WANT_C_UNIT_TESTS
|
||||
fko_utests_LDFLAGS = -lcunit $(GPGME_LIBS)
|
||||
libfko_la_LDFLAGS = -version-info 2:3:0 $(GPGME_LIBS) -export-symbols-regex '^fko_'
|
||||
else
|
||||
if APPLE_PLATFORM
|
||||
libfko_la_LDFLAGS = -version-info 2:3:0 $(GPGME_LIBS) -export-symbols-regex '^fko_'
|
||||
else
|
||||
libfko_la_LDFLAGS = -version-info 2:3:0 $(GPGME_LIBS) \
|
||||
-export-symbols-regex '^fko_' \
|
||||
-Wl,--whole-archive,$(top_builddir)/common/libfko_util.a,--no-whole-archive
|
||||
endif
|
||||
endif
|
||||
|
||||
libfko_la_SOURCES = $(libfko_source_files)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user