sgmltool/cflags-sgml-tools-1.0.9.diff
Martin Pluskal 76d898e5d1 - Fix up cflags-sgml-tools-1.0.9.diff so that %optflags are not
completely lost.  Added -fpermissive to %optflags in order to
  make GCC 14 treat a number of C99 violations as mere warnings
  by default. [boo#1225928]

The package is somewhat wild, please see comment #1 in the bug
boo#1225928 if you are interested in details.

If the request is OK, please forward it to Factory soon-ish so that we
can switch the default compiler.

OBS-URL: https://build.opensuse.org/package/show/Publishing/sgmltool?expand=0&rev=26
2024-07-16 11:11:36 +00:00

38 lines
1.4 KiB
Diff

--- sgml-tools-1.0.9/Makefile.in.~1~ 2005-10-10 11:46:17.000000000 +0200
+++ sgml-tools-1.0.9/Makefile.in 2005-10-10 14:05:24.000000000 +0200
--- sgml-tools-1.0.9.orig/Makefile.in
+++ sgml-tools-1.0.9/Makefile.in
@@ -34,7 +34,7 @@ all: gen
ifeq ($(BUILD_SGMLSASP), true)
@echo "Compiling the SGML parsing tools (in sgmls-1.1/)..."
( cd sgmls-1.1 ; \
- $(MAKE) OPTIMIZE="$(OPTIMIZE)" sgmlsasp )
+ $(MAKE) CFLAGS="$(CFLAGS)" OPTIMIZE="$(OPTIMIZE)" sgmlsasp )
endif
ifeq ($(BUILD_NSGMLS), true)
@echo "Compiling the SGML parsing tools (in sp/)..."
@@ -49,10 +49,10 @@
endif
@echo "Compiling preprocessor (in sgmlpre/)..."
( cd sgmlpre ; \
- $(MAKE) CFLAGS="$(OPTIMIZE)" LEX=flex sgmlpre || exit -1 )
+ $(MAKE) CFLAGS="$(CFLAGS)" OPTIMIZE="$(OPTIMIZE)" LEX=flex sgmlpre || exit -1 )
@echo "Compiling RTF conversion tools (in rtf-fix/)..."
( cd rtf-fix ; \
- $(MAKE) CFLAGS="$(OPTIMIZE)" || exit -1 )
+ $(MAKE) CFLAGS="$(CFLAGS)" OPTIMIZE="$(OPTIMIZE)" || exit -1 )
install::
@echo "Installing binaries in $(bindir) ..."
--- sgml-tools-1.0.9.orig/sgmls-1.1/Makefile
+++ sgml-tools-1.0.9/sgmls-1.1/Makefile
@@ -21,7 +21,7 @@ INCLUDE=
OPTIMIZE=-O
DEBUG=
WARN=
-CFLAGS=$(DEBUG) $(INCLUDE) $(WARN) $(PROFILE) $(OPTIMIZE)
+CFLAGS=$(CFLAGS) $(DEBUG) $(INCLUDE) $(WARN) $(PROFILE) $(OPTIMIZE)
LDFLAGS=$(DEBUG) $(PROFILE)
# Additional libraries needed.
# Ultrix needs -li