mirror of
https://git.freebsd.org/ports.git
synced 2025-06-02 11:26:29 -04:00
- Fix build without gcc PR: ports/182226 Submitted by: Natacha Porté <natbsd instinctive.eu> (maintainer)
30 lines
1.1 KiB
Text
30 lines
1.1 KiB
Text
--- ./BSDmakefile.orig 2013-09-19 11:31:40.022802767 +0200
|
|
+++ ./BSDmakefile 2013-09-19 11:32:24.482713883 +0200
|
|
@@ -16,9 +16,9 @@
|
|
|
|
DEPDIR=depends
|
|
ALLDEPS=$(DEPDIR)/all
|
|
-CFLAGS=-c -g -O3 -Wall -Wextra -Werror -fno-builtin -std=c99 -pedantic -DHAVE_CONFIG_H
|
|
-LDFLAGS=-g -O3 -Wall -Wextra -Werror -fno-builtin -std=c99 -pedantic -DHAVE_CONFIG_H
|
|
-CC=gcc
|
|
+CFLAGS?=-g -O3 -Wall -Wextra -Werror -fno-builtin -std=c99 -pedantic -DHAVE_CONFIG_H
|
|
+LDFLAGS?=-g -O3 -Wall -Wextra -Werror -fno-builtin -std=c99 -pedantic -DHAVE_CONFIG_H
|
|
+CC?=gcc
|
|
|
|
default: ddns-client ddns-server
|
|
|
|
@@ -83,7 +83,7 @@
|
|
@$(CC) -MM $(.IMPSRC) > $(DEPDIR)/$(.PREFIX).d
|
|
@grep -q "$(.PREFIX).d" $(ALLDEPS) \
|
|
|| echo ".include \"$(.PREFIX).d\"" >> $(ALLDEPS)
|
|
- $(CC) $(CFLAGS) -o $(.TARGET) $(.IMPSRC)
|
|
+ $(CC) $(CFLAGS) -c -o $(.TARGET) $(.IMPSRC)
|
|
|
|
.m.o:
|
|
@mkdir -p $(DEPDIR)
|
|
@@ -91,4 +91,4 @@
|
|
@$(CC) -MM $(.IMPSRC) > depends/$(.PREFIX).d
|
|
@grep -q "$(.PREFIX).d" $(ALLDEPS) \
|
|
|| echo ".include \"$(.PREFIX).d\"" >> $(ALLDEPS)
|
|
- $(CC) $(CFLAGS) -o $(.TARGET) $(.IMPSRC)
|
|
+ $(CC) $(CFLAGS) -c -o $(.TARGET) $(.IMPSRC)
|