Skip to content

Commit

Permalink
configure.ac: Specify CXXFLAGS instead of CPPFLAGS.
Browse files Browse the repository at this point in the history
Autotools uses CPPFLAGS for C preprocessor and CXXFLAGS for C++ compile flags.
  • Loading branch information
MikuAuahDark committed Aug 3, 2023
1 parent 7706ac7 commit 536e7e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/unix/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ACLOVE_CPP11_TEST

# Add -fvisibility=hidden and -fvisibility-inlines-hidden
CFLAGS="-fvisibility=hidden $CFLAGS"
CPPFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden $CPPFLAGS"
CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden $CXXFLAGS"

# Allow people on OSX to use autotools, they need their platform files
AC_ARG_ENABLE([osx],
Expand Down

0 comments on commit 536e7e9

Please sign in to comment.