1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/cad/cider/files/patch-bl
Martin Wilke 000cebd64d - Fix build with gcc 4.1
PR:		ports/107134
Submitted by:	AMAKAWA Shuhei <sa264@cam.ac.uk> (maintainer)
2007-01-22 08:30:59 +00:00

30 lines
1.1 KiB
Plaintext

--- cider/common/src/bin/makeops.orig Tue Mar 8 12:39:12 1994
+++ cider/common/src/bin/makeops Wed Dec 20 22:51:56 2006
@@ -19,14 +19,14 @@
mkdir $(CIDER_EXEC_DIR)
cider.o: main.c $(SYS_CONF)/$(OBJECTIVE)-cc
- $(CC) -c $(CFLAGS) $(INCLUDE) -DSIMULATOR $(SRC_DIR)/main.c $(ASM_HACK)
+ $(REAL_CC) -c $(REAL_CFLAGS) $(INCLUDE) -DSIMULATOR $(SRC_DIR)/main.c $(ASM_HACK)
mv -f main.o $@
conf.o: conf.c
- $(CC) $(CFLAGS) $(INCLUDE) -c conf.c $(ASM_HACK)
+ $(REAL_CC) $(REAL_CFLAGS) $(INCLUDE) -c conf.c $(ASM_HACK)
$(TUNEFILE).o: $(TUNEFILE).c
- $(CC) $(CFLAGS) $(INCLUDE) -c $(TUNEFILE).c $(ASM_HACK)
+ $(REAL_CC) $(REAL_CFLAGS) $(INCLUDE) -c $(TUNEFILE).c $(ASM_HACK)
conf.c: config.c $(SYS_CONF)/$(OBJECTIVE)
@echo Creating "$@":
@@ -66,7 +66,7 @@
cider: cider.o conf.o $(TUNEFILE).o $(OBJCDR) $(LIBBEFS) $(LIBCDR) $(LIBAFTS) \
$(SYS_CONF)/$(OBJECTIVE)-ld
-@rm -f cider
- $(CC) -o $@ cider.o conf.o $(TUNEFILE).o $(OBJCDR) \
+ $(REAL_CC) -o $@ cider.o conf.o $(TUNEFILE).o $(OBJCDR) \
$(LIBBEFS) $(LIBCDR) $(LIBAFTS) $(LIBTCGMSG) $(LIBX) $(LDFLAGS)
qcider: qcider.tpl $(SYS_CONF)/$(OBJECTIVE)