Skip to content

Commit

Permalink
gnustep-make: enable optimizations and always generate debug info
Browse files Browse the repository at this point in the history
Fixes #35.
  • Loading branch information
triplef committed Dec 4, 2023
1 parent 18bfeb1 commit 82397ac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions phases/20-gnustep-make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ export TAG=
# load environment and prepare project
../scripts/common.bat prepare_project

# set CFLAGS to enable optimizations and always generate debug info,
# which is required because Autoconf doesn't recognize Clang to support
# GNU C on Windows and therefore doesn't set CFLAGS to "-g -O2"
if [ ! -v OPTFLAG ]; then
OPTFLAG=-O2
fi
CFLAGS="-g -gcodeview $OPTFLAG"

cd "$SRCROOT/$PROJECT"

echo
Expand All @@ -24,6 +32,7 @@ fi
--prefix="$UNIX_INSTALL_PREFIX" \
--with-library-combo=ng-gnu-gnu \
--with-runtime-abi=gnustep-2.0 \
CFLAGS="$CFLAGS" \
$CONFIGURE_OPTS

echo
Expand Down

0 comments on commit 82397ac

Please sign in to comment.