pkgsrc/devel/tpasm/patches/patch-aa
sketch bbaaa92f4e Ensure the same compiler is used to both compile and link the program,
fixing the GCC 3 breakage exhibited in pkg/23424.  This also fixes the
build using Sun CC on Solaris.
2003-12-02 17:59:45 +00:00

29 lines
673 B
Text

$NetBSD: patch-aa,v 1.3 2003/12/02 17:59:45 sketch Exp $
--- Makefile.orig 2003-12-02 17:09:48.000000000 +0000
+++ Makefile 2003-12-02 17:12:02.000000000 +0000
@@ -16,7 +16,7 @@
INCLUDES=-I.
OPTIONS=-O2 -Wall -x c++
-CFLAGS=$(INCLUDES) $(OPTIONS)
+CFLAGS += $(INCLUDES)
OBJECTS = \
globals.o \
@@ -65,7 +65,7 @@
all : tpasm
tpasm : $(OBJECTS)
- $(CC) -O $(OBJECTS) -o tpasm
+ $(CXX) $(CFLAGS) $(OBJECTS) -o tpasm
clean :
rm -f *.o
@@ -79,5 +79,5 @@
# suffix rules (this makes sure that the ".o" files
# end up in their respective directories on all systems)
.c.o:
- ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ -c $<
+ ${CXX} ${CFLAGS} ${CPPFLAGS} -o $@ -c $<