3c93901bcd
uClibc-ng does not support PIE for some architectures as arc and m68k. It isn't implemented in the static linking case, too. With musl toolchains you might have static PIE support with little patching of gcc. Static linking for GNU libc isn't enabled in buildroot. Fixup any package using special treatment of PIE. (grep -ir pie package/*/*.mk) Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> [Thomas: use positive logic.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# openswan
|
|
#
|
|
################################################################################
|
|
|
|
OPENSWAN_VERSION = 2.6.46
|
|
OPENSWAN_SITE = http://download.openswan.org/openswan
|
|
OPENSWAN_LICENSE = GPLv2+, BSD-3c
|
|
OPENSWAN_LICENSE_FILES = COPYING LICENSE
|
|
|
|
OPENSWAN_DEPENDENCIES = host-bison host-flex gmp iproute2
|
|
OPENSWAN_MAKE_OPTS = ARCH=$(BR2_ARCH) CC="$(TARGET_CC)" \
|
|
USERCOMPILE="$(TARGET_CFLAGS) $(if $(BR2_TOOLCHAIN_SUPPORTS_PIE),-fPIE)" \
|
|
USERLINK="$(TARGET_LDFLAGS) $(if $(BR2_TOOLCHAIN_SUPPORTS_PIE),-fPIE)" \
|
|
INC_USRLOCAL=/usr USE_KLIPS=false USE_MAST=false USE_NM=false
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
OPENSWAN_DEPENDENCIES += libcurl
|
|
OPENSWAN_MAKE_OPTS += USE_LIBCURL=true
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
OPENSWAN_DEPENDENCIES += openssl
|
|
OPENSWAN_MAKE_OPTS += HAVE_OPENSSL=true
|
|
ifeq ($(BR2_PACKAGE_OCF_LINUX),y)
|
|
OPENSWAN_MAKE_OPTS += HAVE_OCF=true
|
|
endif
|
|
endif
|
|
|
|
define OPENSWAN_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) \
|
|
$(OPENSWAN_MAKE_OPTS) programs
|
|
endef
|
|
|
|
define OPENSWAN_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) \
|
|
$(OPENSWAN_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|