mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-24 14:03:29 +08:00
4th: build with -fPIC when shared library build is enabled
Fixes: http://autobuild.buildroot.net/results/1e288dabbdd0c5131c18e1426ed6ceedce046b9c/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
9c7c9d99ab
commit
3991b22121
@ -14,16 +14,19 @@
|
||||
4TH_DEPENDENCIES = host-4th
|
||||
4TH_INSTALL_STAGING = YES
|
||||
|
||||
4TH_CFLAGS = $(TARGET_CFLAGS) -DUNIX -fsigned-char
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
4TH_MAKE_ENV = STATIC=1
|
||||
else
|
||||
4TH_MAKE_ENV = SHARED=1
|
||||
4TH_CFLAGS += -fPIC
|
||||
endif
|
||||
|
||||
define 4TH_BUILD_CMDS
|
||||
$(4TH_MAKE_ENV) $(MAKE) -C $(@D)/sources all \
|
||||
CROSS="$(TARGET_CROSS)" \
|
||||
CFLAGS="$(TARGET_CFLAGS) -DUNIX -fsigned-char" \
|
||||
CFLAGS="$(4TH_CFLAGS)" \
|
||||
FOURTH=$(HOST_DIR)/usr/bin/4th
|
||||
endef
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user