fakepop: fix compilation with PKG_ASLR
authorRosen Penev <redacted>
Sat, 21 Aug 2021 00:23:59 +0000 (17:23 -0700)
committerRosen Penev <redacted>
Sat, 21 Aug 2021 18:43:57 +0000 (11:43 -0700)
Signed-off-by: Rosen Penev <redacted>
net/fakepop/Makefile
net/fakepop/patches/010-fPIC.patch [new file with mode: 0644]

index 3a14cad9de705d549f52401a07cc34f375d3d7d4..6441c930099897884d7867046c643f6b90826fbd 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=fakepop
 PKG_VERSION:=11
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_MAINTAINER:=Marc Egerton <foxtrot@realloc.me>
 PKG_LICENSE:=GPL-3.0-or-later
diff --git a/net/fakepop/patches/010-fPIC.patch b/net/fakepop/patches/010-fPIC.patch
new file mode 100644 (file)
index 0000000..dec12dd
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/Makefile
++++ b/Makefile
+@@ -2,8 +2,8 @@
+ GLIB_CFLAGS  = $(shell pkg-config --cflags glib-2.0)
+ GLIB_LDFLAGS = $(shell pkg-config --libs glib-2.0)
+-CFLAGS       = -D_GNU_SOURCE -Wall -O2 $(GLIB_CFLAGS)
+-LDLIBS       = $(GLIB_LDFLAGS)
++CFLAGS       += $(GLIB_CFLAGS)
++LDLIBS       += $(GLIB_LDFLAGS)
+ all: fakepop
git clone https://git.99rst.org/PROJECT