blob: 26fdf15127eee5bdd189a6db4a10be713e434236 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-src_plugins_Makefile,v 1.1 2016/02/22 12:42:56 khorben Exp $
Always build plug-ins with -fPIC
--- src/plugins/Makefile.orig 2016-02-20 14:42:07.000000000 +0000
+++ src/plugins/Makefile
@@ -6,8 +6,8 @@ LIBDIR = $(PREFIX)/lib
CC = cc
CPPFLAGSF= -I ../../include
CPPFLAGS=
-CFLAGSF = -W `pkg-config --cflags libDesktop`
-CFLAGS = -Wall -g -O2 -pedantic -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-all
+CFLAGSF = `pkg-config --cflags libDesktop` -fPIC
+CFLAGS = -W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
LDFLAGSF= `pkg-config --libs openssl` -lssl `pkg-config --libs libDesktop`
LDFLAGS = -Wl,-z,relro -Wl,-z,now
EXEEXT =
|