[folks] build: Add -no-undefined to all LDFLAGS
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] build: Add -no-undefined to all LDFLAGS
- Date: Tue, 20 Jan 2015 10:33:33 +0000 (UTC)
commit b2660ca904e31b62ad0418327af3c8ce9aecb244
Author: Philip Withnall <philip withnall collabora co uk>
Date: Tue Jan 20 10:31:42 2015 +0000
build: Add -no-undefined to all LDFLAGS
Let’s not get caught by the linker failing on undefined symbols again.
backends/backend-library.mk | 1 +
backends/backend.mk | 1 +
folks/Makefile.am | 5 ++++-
3 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/backends/backend-library.mk b/backends/backend-library.mk
index 2f54a5e..7737c6e 100644
--- a/backends/backend-library.mk
+++ b/backends/backend-library.mk
@@ -124,6 +124,7 @@ backend_library_libadd = \
backend_library_ldflags_generic = \
$(AM_LDFLAGS) \
$(CODE_COVERAGE_LDFLAGS) \
+ -no-undefined \
$(NULL)
backend_library_ldflags = \
$(backend_library_ldflags_generic) \
diff --git a/backends/backend.mk b/backends/backend.mk
index aa5fc67..c364671 100644
--- a/backends/backend.mk
+++ b/backends/backend.mk
@@ -79,4 +79,5 @@ backend_ldflags = \
-fPIC \
-module \
-avoid-version \
+ -no-undefined \
$(NULL)
diff --git a/folks/Makefile.am b/folks/Makefile.am
index a4af6aa..f5d0b25 100644
--- a/folks/Makefile.am
+++ b/folks/Makefile.am
@@ -55,6 +55,7 @@ libfolks_internal_la_CFLAGS = \
libfolks_internal_la_LDFLAGS = \
$(AM_LDFLAGS) \
$(CODE_COVERAGE_LDFLAGS) \
+ -no-undefined \
$(NULL)
libfolks_internal_la_LIBADD = \
@@ -160,7 +161,9 @@ libfolks_la_LIBADD = \
libfolks_la_LDFLAGS = \
$(AM_LDFLAGS) \
$(CODE_COVERAGE_LDFLAGS) \
- -version-info "$(LT_CURRENT)":"$(LT_REVISION)":"$(LT_AGE)"
+ -version-info "$(LT_CURRENT)":"$(LT_REVISION)":"$(LT_AGE)" \
+ -no-undefined \
+ $(NULL)
folksdir = $(includedir)/folks
folks_HEADERS = folks.h
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]