diff options
author | Rosen Penev <rosenp@gmail.com> | 2019-08-27 15:49:22 -0700 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-09-04 13:45:26 +0200 |
commit | 6151609d0701eb0b257ff701c4ec94dcf9f92324 (patch) | |
tree | 96a72f4b9aa552729f9fcd098e8895d659ce89e7 /package | |
parent | aa2980b859edf26df987dfb127293b1a152cdc01 (diff) | |
download | upstream-6151609d0701eb0b257ff701c4ec94dcf9f92324.tar.gz upstream-6151609d0701eb0b257ff701c4ec94dcf9f92324.tar.bz2 upstream-6151609d0701eb0b257ff701c4ec94dcf9f92324.zip |
libnfnetlink: Avoid passing both -fPIC and -fpic
Instead, instruct the configure script to use $(FPIC) only.
Mixing -fPIC and -fpic can cause issues on some platforms like PPC.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 926157c2ccb02aa06b343662ecbd2571faf6eddd)
Diffstat (limited to 'package')
-rw-r--r-- | package/libs/libnfnetlink/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/package/libs/libnfnetlink/Makefile b/package/libs/libnfnetlink/Makefile index cc797e6e2d..7d65d63857 100644 --- a/package/libs/libnfnetlink/Makefile +++ b/package/libs/libnfnetlink/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libnfnetlink PKG_VERSION:=1.0.1 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:= \ @@ -40,12 +40,13 @@ define Package/libnfnetlink/description and/or management tools in userspace. endef -TARGET_CFLAGS += $(FPIC) - CONFIGURE_ARGS += \ --enable-static \ --enable-shared +CONFIGURE_VARS += \ + lt_prog_compiler_pic=$(FPIC) + define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include/libnfnetlink $(CP) \ |