Commit 951602e5 authored by Timo Teräs's avatar Timo Teräs
Browse files

Fixes for hardened environment (and old gcc)

parent d6c74352
......@@ -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
......
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment