Files
macports-ports/math/conauto/files/patch-Makefile.diff

23 lines
685 B
Diff

--- src/Makefile.orig 2013-01-15 15:47:53.000000000 +0700
+++ src/Makefile 2022-12-29 07:54:11.000000000 +0700
@@ -13,8 +13,8 @@
factor.c \
conauto.c
-CC = gcc
-CFLAGS = -Wall -Wconversion -Wredundant-decls -Wunreachable-code -Wuninitialized -Wformat=2
+CC = @CC@
+CFLAGS = @ARCHFLAGS@ -Wall -Wconversion -Wredundant-decls -Wunreachable-code -Wuninitialized -Wformat=2
# AGC: automorphism group computation. Should be defined always
# PCS: pivot cell selection
@@ -35,7 +35,7 @@
all: conauto-2.03
conauto-2.0%: $(OBJS)
- $(CC) -o $(BIN_PATH)/$@ $(OBJS)
+ $(CC) @ARCHFLAGS@ -o $(BIN_PATH)/$@ $(OBJS)
%.o : %.c Makefile
$(CC) $(CFLAGS) $(OFLAGS) $(VFLAGS) -o $@ -c $<