mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
sqlite3: remove $(FPIC)
Defaulting to -fPIC is a bad idea, especially for executables (here: sqlite3-cli). In short, there are certain security implications as well as overhead/performance penalties. Details see: https://wiki.gentoo.org/wiki/Project:Hardened/Position_Independent_Code_internals The configure script is able to detect the need for PIC and adds the flag when needed anyway (when compiling the library). Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=sqlite
|
PKG_NAME:=sqlite
|
||||||
PKG_VERSION:=3260000
|
PKG_VERSION:=3260000
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-autoconf-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-autoconf-$(PKG_VERSION).tar.gz
|
||||||
PKG_HASH:=5daa6a3fb7d1e8c767cd59c4ded8da6e4b00c61d3b466d0685e35c4dd6d7bf5d
|
PKG_HASH:=5daa6a3fb7d1e8c767cd59c4ded8da6e4b00c61d3b466d0685e35c4dd6d7bf5d
|
||||||
@@ -75,7 +75,7 @@ $(call Package/sqlite3/Default/description)
|
|||||||
formats.
|
formats.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC) \
|
TARGET_CFLAGS += \
|
||||||
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
|
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
|
||||||
-DHAVE_ISNAN=1 \
|
-DHAVE_ISNAN=1 \
|
||||||
-DHAVE_MALLOC_USABLE_SIZE=1
|
-DHAVE_MALLOC_USABLE_SIZE=1
|
||||||
|
|||||||
Reference in New Issue
Block a user