Files
macports-ports/textproc/libsgml/files/patch-src_Makefile.in.diff
Ryan Schmidt b424f8f2cc libsgml: Use CC not CXX as the linker
This project contains no C++ code so use CC not CXX as the linker.

Use MacPorts CFLAGS, CPPFLAGS, LDFLAGS. Fixes universal variant among
other things.

Closes: https://trac.macports.org/ticket/62285

Also modernize checksums and update homepage.
2021-02-14 03:37:58 -06:00

29 lines
786 B
Diff

--- src/Makefile.in.orig 2003-03-24 02:48:21.000000000 -0600
+++ src/Makefile.in 2021-02-14 02:22:01.000000000 -0600
@@ -2,12 +2,14 @@
# source make file
#
+prefix=@prefix@
CC=@CC@
DEBUG=@DEBUG@
INCLUDE=-I../include -I.
LIBS=@LIBS@
-CFLAGS=${DEBUG} ${INCLUDE} -Wall -O3
-LFLAGS=${DEBUG} ${INCLUDE} -Wall -O3 -o
+CFLAGS=${DEBUG} ${INCLUDE} -Wall -O3 @CFLAGS@
+CPPFLAGS=@CPPFLAGS@
+LDFLAGS=@LDFLAGS@
OBJS=DomComment.o DomDocument.o DomElement.o DomNode.o DomNodeList.o DomText.o SgmlExtensionHtml.o SgmlExtensionXml.o SgmlParser.o Variant.o
LIBNAME=../libsgml.a
LIBEXEC=ar rc ${LIBNAME} ${OBJS} ${LIBS} && ranlib ${LIBNAME}
@@ -18,7 +20,7 @@
${LIBBIN}
*.c.${O}:
- ${CC} ${CFLAGS} $*.c
+ ${CC} ${CFLAGS} ${CPPFLAGS} $*.c
clean:
rm -f *.o core ${LIBNAME} ../libsgml.so