1eaad99d72
- Properly respect ${CC} - Cosmetic fixes - Mark broken on 9.x due to too long username PR: 210885 Submitted by: freebsd@toyingwithfate.com (maintainer)
29 lines
747 B
Text
29 lines
747 B
Text
--- Makefile.orig 2016-07-08 19:10:05 UTC
|
|
+++ Makefile
|
|
@@ -7,7 +7,7 @@ all::
|
|
|
|
### Defaults
|
|
|
|
-BASIC_CFLAGS = -O2 -std=c99 -Wall -I./argparse
|
|
+BASIC_CFLAGS = -std=c99 -Wall -I./argparse
|
|
BASIC_LDFLAGS = -lm -lsodium
|
|
|
|
# Guard against environment variables
|
|
@@ -29,13 +29,13 @@ uname_P := $(shell sh -c 'uname -p 2>/de
|
|
uname_V := $(shell sh -c 'uname -v 2>/dev/null || echo not')
|
|
|
|
# CFLAGS and LDFLAGS are for users to override
|
|
-CFLAGS = -g -O2 -Wall
|
|
-LDFLAGS =
|
|
+CFLAGS ?= -g -O2 -Wall
|
|
+LDFLAGS ?=
|
|
STRIP ?= strip
|
|
|
|
# We use ALL_* variants
|
|
-ALL_CFLAGS = $(CFLAGS) $(BASIC_CFLAGS)
|
|
-ALL_LDFLAGS = $(LDFLAGS) $(BASIC_LDFLAGS)
|
|
+ALL_CFLAGS = $(BASIC_CFLAGS) $(CFLAGS)
|
|
+ALL_LDFLAGS = $(BASIC_LDFLAGS) $(LDFLAGS)
|
|
|
|
ifdef PREFIX
|
|
prefix = $(PREFIX)
|