Respect CC/CFLAGS
This commit is contained in:
parent
72b1bbcc19
commit
4f4cee6af1
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.4 2015/05/11 16:24:38 nigel Exp $
|
||||
# $OpenBSD: Makefile,v 1.5 2017/02/27 19:15:32 jca Exp $
|
||||
|
||||
COMMENT = forensic data recovery program
|
||||
|
||||
@ -16,6 +16,8 @@ MASTER_SITES = http://foremost.sourceforge.net/pkg/
|
||||
|
||||
WANTLIB += c
|
||||
|
||||
MAKE_FLAGS= RAW_CC="${CC}" \
|
||||
CFLAGS="${CFLAGS}"
|
||||
FAKE_FLAGS = BIN=${WRKINST}${PREFIX}/bin \
|
||||
MAN=${WRKINST}${PREFIX}/man/man8 \
|
||||
CONF=${WRKINST}${PREFIX}/share/examples/ \
|
||||
|
20
security/foremost/patches/patch-Makefile
Normal file
20
security/foremost/patches/patch-Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1 2017/02/27 19:15:32 jca Exp $
|
||||
--- Makefile.orig Mon Feb 27 20:10:41 2017
|
||||
+++ Makefile Mon Feb 27 20:11:12 2017
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
RAW_CC = gcc
|
||||
-RAW_FLAGS = -Wall -O2
|
||||
+RAW_FLAGS = -Wall
|
||||
LINK_OPT =
|
||||
VERSION = 1.5.7
|
||||
# Try to determine the host system
|
||||
@@ -39,7 +39,7 @@ WINCC = $(RAW_CC) $(RAW_FLAGS) -D__WIN32
|
||||
# Generic "how to compile C files"
|
||||
CC = $(RAW_CC) $(RAW_FLAGS) -D__UNIX
|
||||
.c.o:
|
||||
- $(CC) -c $<
|
||||
+ $(CC) $(CFLAGS) -c $<
|
||||
|
||||
|
||||
# Definitions we'll need later (and that should rarely change)
|
Loading…
Reference in New Issue
Block a user