Package: foma / 1:0.9.18+r243-6

foma_02_Makefile.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix LDFLAGS and CFLAGS
diff -urN foma-0.9.18.old/Makefile foma-0.9.18/Makefile
--- foma-0.9.18.old/Makefile	2016-02-08 11:58:50.528291665 +0200
+++ foma-0.9.18/Makefile	2016-02-08 12:00:31.558030362 +0200
@@ -13,9 +13,9 @@
 LEXIFACE = flex -8 --prefix=interface
 LEXCMATRIX = flex -8 --prefix=cmatrix
 RM = /bin/rm -f
-LDFLAGS = -lreadline -lz -ltermcap
+LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) -lreadline -lz -ltermcap -z relro
 FLOOKUPLDFLAGS = libfoma.a -lz
-CFLAGS = -O3 -Wall -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC -mmacosx-version-min=10.6 -DSVN_REV=$(SVN_REV)
+CFLAGS = $(shell dpkg-buildflags --get CFLAGS) -Wall -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC -Wl,-z,relro
 FOMAOBJS = foma.o stack.o iface.o lex.interface.o
 LIBOBJS = int_stack.o define.o determinize.o apply.o rewrite.o lexcread.o topsort.o flags.o minimize.o reverse.o extract.o sigma.o io.o structures.o constructions.o coaccessible.o utf8.o spelling.o dynarray.o mem.o stringhash.o trie.o lex.lexc.o lex.yy.o lex.cmatrix.o regex.o