aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 26edf31..07a4ee2 100755
--- a/build.sh
+++ b/build.sh
@@ -60,7 +60,7 @@ build_compile_commands() {
build_test() {
CFLAGS="$CFLAGS -g -O0 -DDEBUG"
- BUILD_ARGS="$source_files $CFLAGS $LIBS -shared -fpic -o libamalgam.so"
+ BUILD_ARGS="$source_files $CFLAGS $LIBS -shared -fPIC -o libamalgam.so"
set -x
time $CC $BUILD_ARGS
if [ -n "$SCAN_BUILD" ]; then
@@ -80,7 +80,7 @@ build_test() {
build_release() {
CFLAGS="$CFLAGS -O2 -DNDEBUG -s"
- BUILD_ARGS="$source_files $CFLAGS $LIBS -shared -fpic -o libamalgam.so"
+ BUILD_ARGS="$source_files $CFLAGS $LIBS -shared -fPIC -o libamalgam.so"
set -x
time $CC $BUILD_ARGS
if [ -n "$SCAN_BUILD" ]; then
@@ -94,6 +94,7 @@ build_release() {
case "$1" in
"test")
build_test
+ ./tools/highlevel_c.py
;;
"release")
build_release