Project

General

Profile

Review #752 » 0001-Build-lexer-in-a-separate-unit-without-AM_CFLAGS.patch

Loïc Gomez, 2022-01-12 18:39

View differences:

src/Makefile.am
1
noinst_LIBRARIES = libbip.a
1
noinst_LIBRARIES = libbip.a libbiplex.a
2 2

  
3
libbip_a_SOURCES = conf.y lex.l \
3
libbiplex_a_SOURCES = \
4
	conf.y lex.l
5

  
6
# Not adding AM_CFLAGS here, because many debian flex releases generate code
7
# that compares signed and unsigned integers.
8
libbiplex_a_CFLAGS = $(OPENSSL_CFLAGS)
9

  
10
libbip_a_SOURCES = \
4 11
	bip.c bip.h \
5 12
	connection.c connection.h \
6 13
	defaults.h \
......
19 26

  
20 27
bip_SOURCES = bip_main.c
21 28
bip_CFLAGS = ${OPENSSL_CFLAGS} $(AM_CFLAGS)
22
bip_LDADD = libbip.a ${OPENSSL_LIBS}
29
bip_LDADD = libbip.a libbiplex.a ${OPENSSL_LIBS}
23 30

  
24 31

  
25 32
bipmkpw_SOURCES = bipmkpw.c md5.c util.c
26 33
bipmkpw_CFLAGS = ${OPENSSL_CFLAGS} $(AM_CFLAGS)
34
bipmkpw_LDADD = libbip.a libbiplex.a $(OPENSSL_LIBS)
35

  
27 36
AM_YFLAGS= -d
28 37
BUILT_SOURCES = conf.c conf.h lex.c
29 38

  
30
AM_CFLAGS=-Wall -Wextra -Werror -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-z,separate-code -Wpedantic -Wformat=2 -Wformat-overflow=2 -Wformat-truncation=2 -Wformat-security -Wnull-dereference -Wstack-protector -Wtrampolines -Walloca -Wvla -Warray-bounds=2 -Wimplicit-fallthrough=3 -Wtraditional-conversion -Wshift-overflow=2 -Wcast-qual -Wstringop-overflow=4 -Wconversion -Warith-conversion -Wlogical-op -Wduplicated-cond -Wduplicated-branches -Wformat-signedness -Wshadow -Wstrict-overflow=4 -Wundef -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wstack-usage=1000000 -Wcast-align=strict
39
AM_CFLAGS=-Wall -Wextra -Werror -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-z,separate-code -Wpedantic -Wformat=2 -Wformat-overflow=2 -Wformat-truncation=2 -Wformat-security -Wnull-dereference -Wstack-protector -Wtrampolines -Walloca -Wvla -Warray-bounds=2 -Wimplicit-fallthrough=3 -Wtraditional-conversion -Wshift-overflow=2 -Wcast-qual -Wstringop-overflow=4 -Wconversion -Warith-conversion -Wlogical-op -Wduplicated-cond -Wduplicated-branches -Wformat-signedness -Wshadow -Wstrict-overflow=4 -Wundef -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wstack-usage=1000000 -Wcast-align=strict
31
- 
    (1-1/1)