Skip to content

Commit

Permalink
Added additional parameters to gcc for complete coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsundahl committed Feb 19, 2018
1 parent 7f16a1b commit 1c7e20c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ RUN mkdir ./lib
RUN ar -cvq lib/utilhook.a obj/*.o

RUN mkdir ./dll
RUN gcc -fPIC -shared -o dll/basehook.so src/basehook.c lib/utilhook.a -ldl
RUN gcc -fPIC -shared -o dll/fullhook.so src/fullhook.c lib/utilhook.a -ldl
RUN gcc -fstack-protector-all -fPIC -Fpie -pie -Wl,-z,relro,-z,now -shared -o dll/basehook.so src/basehook.c lib/utilhook.a -ldl
RUN gcc -fstack-protector-all -fPIC -Fpie -pie -Wl,-z,relro,-z,now -shared -o dll/fullhook.so src/fullhook.c lib/utilhook.a -ldl

RUN mkdir ./app
RUN gcc -DFULLHOOK_MAIN=1 -fPIC -o app/fullhook src/fullhook.c lib/utilhook.a

0 comments on commit 1c7e20c

Please sign in to comment.