From b5fc60620a2cbcea0e05c423a06703d9bd309b5b Mon Sep 17 00:00:00 2001 From: Clive Lin Date: Wed, 1 Jan 2003 21:07:58 +0000 Subject: [PATCH] o Respect CFLAGS. o Add a message telling users to take out -O from their CFLAGS and recompile/reinstall samba if they encounter problems. PR: ports/45691 Approved by: dwcjr (MAINTAINER) --- net/samba/Makefile | 1 + net/samba/files/patch-configure.in | 11 +++++++++++ net/samba/pkg-message | 9 +++++++++ 3 files changed, 21 insertions(+) create mode 100644 net/samba/files/patch-configure.in create mode 100644 net/samba/pkg-message diff --git a/net/samba/Makefile b/net/samba/Makefile index a6696f1b1c3f..4e9c99bae40d 100644 --- a/net/samba/Makefile +++ b/net/samba/Makefile @@ -263,5 +263,6 @@ post-install: done @${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/swat/README ${DOCSDIR}/README.swat .endif + @${CAT} ${PKGMESSAGE} .include diff --git a/net/samba/files/patch-configure.in b/net/samba/files/patch-configure.in new file mode 100644 index 000000000000..bb53a81990a1 --- /dev/null +++ b/net/samba/files/patch-configure.in @@ -0,0 +1,11 @@ +--- source/configure.in.orig Thu Nov 7 17:52:42 2002 ++++ source/configure.in Thu Nov 7 17:53:09 2002 +@@ -168,7 +168,7 @@ + AC_SUBST(LIBSMBCLIENT) + + # compile with optimization and without debugging by default +-CFLAGS="-O ${CFLAGS}" ++CFLAGS="${CFLAGS}" + + AC_ARG_ENABLE(debug, + [ --enable-debug Turn on compiler debugging information (default=no)], diff --git a/net/samba/pkg-message b/net/samba/pkg-message new file mode 100644 index 000000000000..44547dd38d73 --- /dev/null +++ b/net/samba/pkg-message @@ -0,0 +1,9 @@ +======================================================================= + +WARNING: In FreeBSD, it's known that compiling samba with any kind of +optimization flags might cause problems under certain circumstance. + +If you caught any show stopper, please try taking optimization flag(s) +out of your CFLAGS and recompile/reinstall samba. + +=======================================================================