Commit 5f423a8a authored by Baruch Siach's avatar Baruch Siach Committed by Thomas Petazzoni
Browse files
parent cb54da1b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -10,9 +10,13 @@ XL2TP_DEPENDENCIES = libpcap openssl
XL2TP_LICENSE = GPLv2
XL2TP_LICENSE_FILES = LICENSE

ifeq ($(BR2_PREFER_STATIC_LIB),y)
XL2TP_LDLIBS = LDLIBS="$(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)"
endif

define XL2TP_BUILD_CMDS
	$(SED) 's/ -O2 //' $(@D)/Makefile
	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
	$(TARGET_CONFIGURE_OPTS) $(MAKE) $(XL2TP_LDLIBS) -C $(@D)
endef

define XL2TP_INSTALL_TARGET_CMDS