From 8d7c96b99b6c0bdf5476d80e2c70f717cd7ecf72 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Tue, 4 Oct 2022 02:58:25 -0700 Subject: [PATCH] util: ignore `-fpic` as well --- notwa-util/cosmocc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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