summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2013-08-02 10:21:52 +0300
committerRan Benita <ran234@gmail.com>2013-08-02 12:37:36 +0300
commitc25bdc3fca9ba1dcb97b9498f26b658ccef5948f (patch)
treef5d69719d0af63c25de2ec20ce6b727f640c6077
parente91d2653dd18e6dcace8923596c1f1a29bb9d1d4 (diff)
downloadlibxkbcommon-c25bdc3fca9ba1dcb97b9498f26b658ccef5948f.tar.gz
libxkbcommon-c25bdc3fca9ba1dcb97b9498f26b658ccef5948f.tar.bz2
libxkbcommon-c25bdc3fca9ba1dcb97b9498f26b658ccef5948f.zip
build: use AM_LDFLAGS for general flags
We want -no-undefined for every library so do it implictly. Signed-off-by: Ran Benita <ran234@gmail.com>
-rw-r--r--Makefile.am6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 98cabc1..12f0b19 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -12,6 +12,8 @@ AM_CPPFLAGS = \
AM_CFLAGS = $(BASE_CFLAGS)
+AM_LDFLAGS = -no-undefined
+
AM_LFLAGS = -o lex.yy.c
AM_YFLAGS = -d
@@ -23,7 +25,6 @@ xkbcommoninclude_HEADERS = \
xkbcommon/xkbcommon-names.h
lib_LTLIBRARIES = libxkbcommon.la
-libxkbcommon_la_LDFLAGS = -no-undefined
libxkbcommon_la_SOURCES = \
src/xkbcomp/action.c \
src/xkbcomp/action.h \
@@ -108,7 +109,6 @@ endif ENABLE_DOCS
# Some tests need to use unexported symbols, so we link them against
# a private copy of libxkbcommon with all symbols exposed.
noinst_LTLIBRARIES = libtest.la
-libtest_la_LDFLAGS = $(libxkbcommon_la_LDFLAGS)
libtest_la_SOURCES = \
$(libxkbcommon_la_SOURCES) \
test/common.c \
@@ -205,7 +205,7 @@ Android_build.mk: Makefile $(BUILT_SOURCES)
-:TAGS eng debug \
-:SOURCES $(filter-out %.l %.y,$(libxkbcommon_la_SOURCES)) $(BUILT_SOURCES) \
-:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(AM_CPPFLAGS) $(AM_CFLAGS) \
- -:LDFLAGS $(libxkbcommon_la_LDFLAGS) \
+ -:LDFLAGS $(AM_LDFLAGS) \
\
-:PASSTHROUGH 'libxkbcommon-clean: clean-libxkbcommon' \
> $@