aboutsummaryrefslogtreecommitdiff
path: root/net/fakepop
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2021-08-20 17:23:59 -0700
committerRosen Penev <rosenp@gmail.com>2021-08-21 11:43:57 -0700
commit15d2ed15caa23003447e83d1de219b7968919088 (patch)
tree7336570adf1b16b2162183c29df2069510fc9e2c /net/fakepop
parentf53cd4232ae602907822594ed778a9e42f185fd8 (diff)
fakepop: fix compilation with PKG_ASLR
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'net/fakepop')
-rw-r--r--net/fakepop/Makefile2
-rw-r--r--net/fakepop/patches/010-fPIC.patch13
2 files changed, 14 insertions, 1 deletions
diff --git a/net/fakepop/Makefile b/net/fakepop/Makefile
index 3a14cad9d..6441c9300 100644
--- a/net/fakepop/Makefile
+++ b/net/fakepop/Makefile
@@ -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
index 000000000..dec12dd9f
--- /dev/null
+++ b/net/fakepop/patches/010-fPIC.patch
@@ -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
+