Skip to content
Snippets Groups Projects
Commit 86a582c9 authored by David's avatar David
Browse files

contrib: sidplay: Do not overwrite CXXFLAGS in configure.in

resid configure has a bug which overwrites CXXFLAGS unconditionally,
causing build failures when preset CXXFLAGS are needed.

Reason: In newer autoconf, ac_test_CXXFLAGS does not use "set"
anymore, but "y".
parent dd8bfdba
No related branches found
No related tags found
No related merge requests found
Pipeline #478541 passed with stages
in 19 minutes and 2 seconds
......@@ -24,10 +24,12 @@ sidplay-libs: sidplay-libs-$(SID_VERSION).tar.gz .sum-sidplay2
$(APPLY) $(SRC)/sidplay2/sidplay2-noutils.patch
$(APPLY) $(SRC)/sidplay2/sidplay2-string.patch
$(APPLY) $(SRC)/sidplay2/sidplay2-fix-overflow.patch
$(APPLY) $(SRC)/sidplay2/sidplay2-cxxtest.patch
$(MOVE)
.sidplay2: sidplay-libs
$(REQUIRE_GPL)
#export ac_cv_sizeof_int=4
for d in . libsidplay builders resid builders/resid-builder \
builders/hardsid-builder libsidutils ; \
do \
......
--- sidplay-libs/resid/configure.in.old 2024-06-06 09:31:47.000000000 +0200
+++ sidplay-libs/resid/configure.in 2024-06-06 09:32:10.000000000 +0200
@@ -28,7 +28,7 @@
dnl Set CXXFLAGS for g++. Use -fno-exceptions if supported.
if test "$GXX" = yes; then
- if test "$ac_test_CXXFLAGS" != set; then
+ if test "$ac_test_CXXFLAGS" != set -a "$ac_test_CXXFLAGS" != y; then
CXXFLAGS="-g -Wall -O2 -funroll-loops -fomit-frame-pointer -fno-exceptions"
AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works])
AC_TRY_COMPILE([],
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment