summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-12-11 16:32:07 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-05-16 12:37:18 +0200
commit4631764f7306a450b75711a7b5df0495cd722025 (patch)
tree5c3be917584f87c513eab902e604543baab17913
parentc83a82c559e29706630282460a98689a27db29a4 (diff)
downloadOSELAS.Toolchain-4631764f7306a450b75711a7b5df0495cd722025.tar.gz
OSELAS.Toolchain-4631764f7306a450b75711a7b5df0495cd722025.tar.xz
move -Wl,--as-needed to the beginning of the command-line and cleanup PTXDIST_HOST_LDFLAGS
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/post/ptxd_make_world_common.make14
-rw-r--r--rules/pre/toolchain.make5
2 files changed, 18 insertions, 1 deletions
diff --git a/rules/post/ptxd_make_world_common.make b/rules/post/ptxd_make_world_common.make
new file mode 100644
index 0000000..aff1395
--- /dev/null
+++ b/rules/post/ptxd_make_world_common.make
@@ -0,0 +1,14 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2015 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+world/env/impl += \
+ pkg_ldflags="$(call ptx/escape,$($(1)_LDFLAGS)) -Wl,--as-needed"
+
+# vim: syntax=make
diff --git a/rules/pre/toolchain.make b/rules/pre/toolchain.make
index 6f212f5..4a0e278 100644
--- a/rules/pre/toolchain.make
+++ b/rules/pre/toolchain.make
@@ -41,7 +41,10 @@ PTX_HOST_CROSS_AUTOCONF := \
$(PTX_HOST_CROSS_AUTOCONF_TARGET) \
$(PTX_HOST_CROSS_AUTOCONF_PREFIX)
-PTXDIST_HOST_LDFLAGS += -Wl,--as-needed
+#
+# overwrite to remove rpath
+#
+PTXDIST_HOST_LDFLAGS := -L${PTXDIST_PATH_SYSROOT_HOST_PREFIX}/lib
#
# gcc-first