svn commit: trunk/buildroot/package
Author: laird
Date: 2008-10-22 05:47:53 -0700 (Wed, 22 Oct 2008) New Revision: 23763
Log:
package/Makefile.in: Add -rpath-link
As per various email discussions add -rpath-link to the LDFLAGS.
This definately fixes a few issues for Thomas and myself Any objections and it can be pulled again.
Modified:
trunk/buildroot/package/Makefile.in
Changeset:
Modified: trunk/buildroot/package/Makefile.in
===================================================================
buildroot/package/Makefile.in +4 -2
@@ -39,7 +39,8 @@ ifeq ($(BR2_TOOLCHAIN_SOURCE),y) TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) \ -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -TARGET_LDFLAGS+=-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib +TARGET_LDFLAGS+= -L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib +TARGET_LDFLAGS+= -Wl,--rpath-link -Wl,$(STAGING_DIR)/lib -Wl,--rpath-link -Wl,$(STAGING_DIR)/usr/lib ifeq ($(BR2_TOOLCHAIN_SYSROOT),y) TARGET_CFLAGS+= $(BR2_SYSROOT) $(BR2_ISYSROOT) TARGET_LDFLAGS+= $(BR2_SYSROOT)
@@ -91,7 +92,8 @@ else TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include -I$(TOOLCHAIN_EXTERNAL_PATH)/$(TOOLCHAIN_EXTERNAL_PREFIX)/include TARGET_CXXFLAGS=$(TARGET_CFLAGS) -TARGET_LDFLAGS=-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib +TARGET_LDFLAGS+= -L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib +TARGET_LDFLAGS+= -Wl,--rpath-link -Wl,$(STAGING_DIR)/lib -Wl,--rpath-link -Wl,$(STAGING_DIR)/usr/lib endif ######################################################################### #ifeq ($(BR2_ROOTFS_SUFFIX),)
Le Wed, 22 Oct 2008 05:47:54 -0700 (PDT),
laird at uclibc.org a ?crit :
Quoted 3 lines
Author: laird
Date: 2008-10-22 05:47:53 -0700 (Wed, 22 Oct 2008) New Revision: 23763
This breaks the compilation of libpng for me. The configure script thinks that my arm-linux-gcc is not able to generate shared libraries. Removing the two added lines fix the problem.
I didn't had this issue with my original patch, but I didn't investigate in what way your patch differs from mine.
Sincerly,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com