openbsd-ports/security/ADMsmb/patches/patch-Makefile
merdely 1b0f641c09 Make ADMsmb honor CFLAGS and not hardcode -O.
This fixes building on alpha.

ok naddy (MAINTAINER timeout)
2008-02-07 22:27:22 +00:00

28 lines
989 B
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2008/02/07 22:27:22 merdely Exp $
--- Makefile.orig Thu Aug 6 18:45:53 1998
+++ Makefile Wed Jan 23 09:06:57 2008
@@ -23,7 +23,7 @@ INSTALLPERMS = 0755
# Add any optimisation or debugging flags here
# add -DSYSLOG for syslog support
-FLAGS1 = -O
+FLAGS1 = $(CFLAGS0)
LIBS1 =
# You will need to use a ANSI C compiler. This means under SunOS 4 you can't
@@ -137,11 +137,11 @@ AWK = awk
# Use this for Linux with glibc2 (libc6) - RedHat Linux v5.0 with PAM
# contributed by John H Terpstra <jht@aquasoft.com.au>
- FLAGSM = -DLINUX -DNETGROUP -DALLOW_CHANGE_PASSWORD -DFAST_SHARE_MODES -DNO_ASMSIGNALH -DGLIBC2
- LIBSM = -lnsl -lcrypt
+# FLAGSM = -DLINUX -DNETGROUP -DALLOW_CHANGE_PASSWORD -DFAST_SHARE_MODES -DNO_ASMSIGNALH -DGLIBC2
+# LIBSM = -lnsl -lcrypt
# FOR OPEN BSD (thnx to jobe )
-# FLAGSM = -DFAST_SHARE_MODES -DBSD44
+FLAGSM = -DFAST_SHARE_MODES -DBSD44
######################################################################