Enable ASLR and DEP on Windows builds
Always enable ASLR and DEP when building GKrellM on Windows. Since GKrellM also does network communication bugs like buffer overflows and the like may eventually allow remote code execution. By enabling these build flags such attacks should be quite a bit more complicated (although still not impossible).
This commit is contained in:
parent
e611393dfa
commit
56bd6fac14
|
@ -130,7 +130,7 @@ windows: libgkrellmd.a
|
||||||
$(MAKE) \
|
$(MAKE) \
|
||||||
BINEXT=".exe" \
|
BINEXT=".exe" \
|
||||||
CFLAGS="${CFLAGS} -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN" \
|
CFLAGS="${CFLAGS} -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN" \
|
||||||
LINK_FLAGS="-mconsole" \
|
LINK_FLAGS="-mconsole -Wl,--dynamicbase -Wl,--nxcompat" \
|
||||||
EXTRAOBJS="${EXTRAOBJS} win32-resource.o win32-plugin.o" \
|
EXTRAOBJS="${EXTRAOBJS} win32-resource.o win32-plugin.o" \
|
||||||
SYS_LIBS="-lws2_32 -lwtsapi32 -lpdh -lnetapi32 -liphlpapi -lintl" \
|
SYS_LIBS="-lws2_32 -lwtsapi32 -lpdh -lnetapi32 -liphlpapi -lintl" \
|
||||||
all
|
all
|
||||||
|
|
|
@ -168,7 +168,7 @@ windows: libgkrellm.a
|
||||||
$(MAKE) \
|
$(MAKE) \
|
||||||
BINEXT=".exe" \
|
BINEXT=".exe" \
|
||||||
CFLAGS="${CFLAGS} -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN" \
|
CFLAGS="${CFLAGS} -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN" \
|
||||||
LINK_FLAGS="-mwindows" \
|
LINK_FLAGS="-mwindows -Wl,--dynamicbase -Wl,--nxcompat" \
|
||||||
EXTRAOBJS="${EXTRAOBJS} winops-win32.o win32-plugin.o win32-resource.o" \
|
EXTRAOBJS="${EXTRAOBJS} winops-win32.o win32-plugin.o win32-resource.o" \
|
||||||
SYS_LIBS="-lws2_32 -lwtsapi32 -lpdh -lnetapi32 -liphlpapi -lintl" \
|
SYS_LIBS="-lws2_32 -lwtsapi32 -lpdh -lnetapi32 -liphlpapi -lintl" \
|
||||||
X11_LIBS="" \
|
X11_LIBS="" \
|
||||||
|
|
Loading…
Reference in New Issue