Skip to content

Commit

Permalink
add no-pie for clang
Browse files Browse the repository at this point in the history
Signed-off-by: Hajime Tazaki <[email protected]>
  • Loading branch information
thehajime committed Jul 10, 2024
1 parent 97059ff commit ff83423
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ EXTRA_CFLAGS="-fPIC"
if [ -n "$(${CC-cc} -v 2>&1 | grep "enable-default-pie")" ]; then
LDFLAGS_NO_PIE="-no-pie"
fi
if [ -n "$(${CC} -v 2>&1 | grep "clang")" ]; then
LDFLAGS_NO_PIE="-no-pie"
fi

set -x
${CC-cc} -v
Expand Down

0 comments on commit ff83423

Please sign in to comment.