Skip to content

Commit

Permalink
app_sqlang: add -fPIC to compile options of squirrel libs
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Apr 20, 2017
1 parent 2cab97e commit 5757f05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/modules/app_sqlang/squirrel/sqstdlib/Makefile
Expand Up @@ -26,7 +26,7 @@ SRCS= \


sq32:
gcc -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
gcc -O2 -fno-exceptions -fPIC -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
ar rc $(OUT) *.o
rm *.o

Expand All @@ -36,6 +36,6 @@ sqprof:
rm *.o

sq64:
gcc -O2 -m64 -fno-exceptions -D_SQ64 -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
gcc -O2 -m64 -fno-exceptions -fPIC -D_SQ64 -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
ar rc $(OUT) *.o
rm *.o
4 changes: 2 additions & 2 deletions src/modules/app_sqlang/squirrel/squirrel/Makefile
Expand Up @@ -37,7 +37,7 @@ SRCS= \


sq32:
gcc -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
gcc -O2 -fno-exceptions -fPIC -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
ar rc $(OUT) *.o
rm *.o

Expand All @@ -47,6 +47,6 @@ sqprof:
rm *.o

sq64:
gcc -O2 -m64 -D_SQ64 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
gcc -O2 -m64 -D_SQ64 -fno-exceptions -fPIC -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
ar rc $(OUT) *.o
rm *.o

0 comments on commit 5757f05

Please sign in to comment.