respect CC/CFLAGS

This commit is contained in:
wilfried 2001-03-12 15:20:13 +00:00
parent 79fb23ecac
commit 8b42118511
2 changed files with 16 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.12 2001/01/05 16:35:59 brad Exp $
# $OpenBSD: Makefile,v 1.13 2001/03/12 15:20:13 wilfried Exp $
# Original from: Ejovi Nuwere <ejovi@ejovi.net>
DISTNAME= crack5.0
@ -31,7 +31,7 @@ pre-build:
fi)
do-build:
(cd ${WRKSRC} ; ./Crack -makeonly)
(cd ${WRKSRC} ; CC="${CC}" CFLAGS="${CFLAGS}" ./Crack -makeonly)
(cd ${WRKSRC} ; ./Crack -makedict)
.if !defined(USE_DES)
@#(cd ${WRKSRC} ; ./Crack -fgnd -fmt bsd ${FILESDIR}/pw-md5.test)

View File

@ -1,6 +1,16 @@
--- Crack.orig Fri Dec 20 18:09:41 1996
+++ Crack Thu May 4 18:59:18 2000
@@ -279,23 +279,11 @@
--- Crack.orig Sat Dec 21 02:09:41 1996
+++ Crack Mon Mar 12 16:17:16 2001
@@ -42,8 +42,7 @@ C5FLAGS="-DUSE_STRING_H -DUSE_STDLIB_H -
#
# vanilla unix cc
-CC=cc
-CFLAGS="-g -O $C5FLAGS"
+CFLAGS="$CFLAGS $C5FLAGS"
#LIBS=-lcrypt # uncomment only if necessary to use stdlib crypt(), eg: NetBSD MD5
# gcc 2.7.2
@@ -279,23 +278,11 @@ fi
# Sanity test bindir - written in gruntscript for clarity.
###
@ -25,7 +35,7 @@
elif [ -d run/bin/$1 ] # have been here before
then
bindir=run/bin/$1
@@ -305,20 +293,20 @@
@@ -305,20 +292,20 @@ then
bindir=run/bin/$1
shift
else # use generic name