All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] build: pass -no-undefined properly
@ 2020-09-15 18:00 Ross Burton
  2020-09-15 18:00 ` [PATCH 2/2] build: Add -ldl to LIBS as needed Ross Burton
  0 siblings, 1 reply; 4+ messages in thread
From: Ross Burton @ 2020-09-15 18:00 UTC (permalink / raw)
  To: ell

[-- Attachment #1: Type: text/plain, Size: 941 bytes --]

From: Ross Burton <ross.burton@arm.com>

-no-undefined was added to the libell.la LDFLAGS in commit 8391d72d,
back in 2012, as part of adding versioning. I believe there was some
confusion here as passing -no-undefined to libtool is different to
passing -no-undefined to the linker.  The former changes libtool's
behaviour on Windows hosts related to static libraries, the latter will
warn if symbols are used but not defined.
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 4eb20c6..395edc3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -138,7 +138,7 @@ ell_libell_la_SOURCES = $(linux_headers) \
 			ell/gpio.c \
 			ell/path.c
 
-ell_libell_la_LDFLAGS = -no-undefined \
+ell_libell_la_LDFLAGS = -Wl,--no-undefined \
 			-Wl,--version-script=$(top_srcdir)/ell/ell.sym \
 			-version-info $(ELL_CURRENT):$(ELL_REVISION):$(ELL_AGE)
 
-- 
2.28.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH 1/2] build: pass -no-undefined properly
@ 2020-10-14 10:46 Ross Burton
  2020-10-20 15:02 ` Denis Kenzior
  0 siblings, 1 reply; 4+ messages in thread
From: Ross Burton @ 2020-10-14 10:46 UTC (permalink / raw)
  To: ell

[-- Attachment #1: Type: text/plain, Size: 951 bytes --]

From: Ross Burton <ross.burton@arm.com>

-no-undefined was added to the libell.la LDFLAGS in commit 8391d72d,
back in 2012, as part of adding versioning. I believe there was some
confusion here as passing -no-undefined to libtool is different to
passing -no-undefined to the linker.  The former changes libtool's
behaviour on Windows hosts related to static libraries, the latter will
warn if symbols are used but not defined.
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 9b3e3c9..7518c6a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -141,7 +141,7 @@ ell_libell_la_SOURCES = $(linux_headers) \
 			ell/icmp6.c \
 			ell/icmp6-private.h
 
-ell_libell_la_LDFLAGS = -no-undefined \
+ell_libell_la_LDFLAGS = -Wl,--no-undefined \
 			-Wl,--version-script=$(top_srcdir)/ell/ell.sym \
 			-version-info $(ELL_CURRENT):$(ELL_REVISION):$(ELL_AGE)
 
-- 
2.28.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-20 15:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-15 18:00 [PATCH 1/2] build: pass -no-undefined properly Ross Burton
2020-09-15 18:00 ` [PATCH 2/2] build: Add -ldl to LIBS as needed Ross Burton
2020-10-14 10:46 [PATCH 1/2] build: pass -no-undefined properly Ross Burton
2020-10-20 15:02 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.