diff --git a/notwa-util/cosmocc b/notwa-util/cosmocc index eba369d..b579d0e 100755 --- a/notwa-util/cosmocc +++ b/notwa-util/cosmocc @@ -39,9 +39,9 @@ for x in "$@"; do '' exit 0 elif is_in "$x" \ - -fomit-frame-pointer -fPIC -lc -lc_r -lcma -ldl -lgcc \ - -lm -lpthread -lpthreads -lresolv -lrt -lunwind -lutil \ - -Wl,-Bdynamic -Wl,-Bstatic + -fomit-frame-pointer -fPIC -fpic -lc -lc_r -lcma -ldl \ + -lgcc -lm -lpthread -lpthreads -lresolv -lrt -lunwind \ + -lutil -Wl,-Bdynamic -Wl,-Bstatic then continue elif [ "$x" = -c ]; then flag_c=1