Skip to content

Commit

Permalink
Remove a linker warning on Mac OSX
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin D. Howard <gavin@gavinhoward.com>
  • Loading branch information
gavinhoward committed Nov 27, 2023
1 parent e2747a1 commit 52b8988
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1367,12 +1367,7 @@ if [ "$debug" -eq 1 ]; then
CFLAGS="-g $CFLAGS"

else

CPPFLAGS="-DNDEBUG $CPPFLAGS"

if [ "$strip_bin" -ne 0 ]; then
LDFLAGS="-s $LDFLAGS"
fi
fi

# Set optimization CFLAGS.
Expand Down Expand Up @@ -1694,6 +1689,11 @@ else
apple=""
fi

# We can't use the linker's strip flag on Mac OSX.
if [ "$debug" -eq 0 ] && [ "$apple" == "" ] && [ "$strip_bin" -ne 0 ]; then
LDFLAGS="-s $LDFLAGS"
fi

# Test OpenBSD. This is not in an if statement because regardless of whatever
# the user says, we need to know if we are on OpenBSD to activate _BSD_SOURCE.
# No, I cannot `#define _BSD_SOURCE` in a header because OpenBSD's patched GCC
Expand Down

0 comments on commit 52b8988

Please sign in to comment.