summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-01-06 05:22:48 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-01-07 21:41:30 +0100
commiteb6cf3003366864aa29cc56eab88c26c3d8baedf (patch)
tree44a518fed5caeec79d9fd5ed55663fceb2b5c250 /package
parent1727e89e9a6076ac81235a9377b749606e23d110 (diff)
downloadbuildroot-novena-eb6cf3003366864aa29cc56eab88c26c3d8baedf.tar.gz
buildroot-novena-eb6cf3003366864aa29cc56eab88c26c3d8baedf.zip
argp-standlone: build position independent code
Even though argp-standalone is built as a static library, it might get linked in a shared library, so we must built it as position-independent code. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/argp-standalone/argp-standalone.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/argp-standalone/argp-standalone.mk b/package/argp-standalone/argp-standalone.mk
index 47c09b29b..ba7f7576c 100644
--- a/package/argp-standalone/argp-standalone.mk
+++ b/package/argp-standalone/argp-standalone.mk
@@ -8,6 +8,9 @@ ARGP_STANDALONE_VERSION = 1.3
ARGP_STANDALONE_SITE = http://www.lysator.liu.se/~nisse/archive
ARGP_STANDALONE_INSTALL_STAGING = YES
+ARGP_STANDALONE_CONF_ENV = \
+ CFLAGS="$(TARGET_CFLAGS) -fPIC"
+
define ARGP_STANDALONE_INSTALL_STAGING_CMDS
$(INSTALL) -D $(@D)/libargp.a $(STAGING_DIR)/usr/lib/libargp.a
$(INSTALL) -D $(@D)/argp.h $(STAGING_DIR)/usr/include/argp.h