summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--src/apk_applet.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 563f066..783b7ce 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ INSTALLDIR=$(INSTALL) -d
CFLAGS=-O2 -g -D_GNU_SOURCE -Werror -Wall -Wstrict-prototypes -std=gnu99 \
-DAPK_VERSION=\"$(FULL_VERSION)\"
-LDFLAGS=-g -lpthread
+LDFLAGS=-g -lpthread -nopie
DESTDIR=
SBINDIR=/usr/sbin
diff --git a/src/apk_applet.h b/src/apk_applet.h
index d243d65..4107135 100644
--- a/src/apk_applet.h
+++ b/src/apk_applet.h
@@ -22,6 +22,6 @@ extern struct apk_applet *__start_apkapplets, *__stop_apkapplets;
#define APK_DEFINE_APPLET(x) \
static struct apk_applet *__applet_##x \
- __attribute__((__section__("apkapplets") used)) = &x;
+ __attribute__((__section__("apkapplets"))) __attribute((used)) = &x;
#endif