Skip to content

Commit

Permalink
Compile fuzzer and bench with -fPIC for obj compatibility with shared…
Browse files Browse the repository at this point in the history
… lib build
  • Loading branch information
conor42 committed May 6, 2019
1 parent 8500f37 commit 9d13017
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bench/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ SRC = $(wildcard ../*.c) ../fuzzer/datagen.c bench.c
OBJ = $(SRC:.c=.o)
DEP = $(OBJ:.o=.d)

CFLAGS:=-Wall -O2 -pthread
# Use -fPIC for obj compatibility with shared lib build
CFLAGS:=-Wall -O2 -pthread -fPIC
CC:=gcc

ASFLAGS:=
Expand Down
3 changes: 2 additions & 1 deletion fuzzer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ SRC = $(wildcard ../*.c) datagen.c fuzzer.c
OBJ = $(SRC:.c=.o)
DEP = $(OBJ:.o=.d)

CFLAGS:=-Wall -O2 -pthread
# Use -fPIC for obj compatibility with shared lib build
CFLAGS:=-Wall -O2 -pthread -fPIC
CC:=gcc

ASFLAGS:=
Expand Down

0 comments on commit 9d13017

Please sign in to comment.