Skip to content
Permalink
Browse files

Deal with lack of UNIX03 compliance in this code.

Obtained from:

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@18621 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Jordan K. Hubbard
Jordan K. Hubbard committed Jul 16, 2006
1 parent 7822a9f commit a1b1f255bc5d69ccff982b69c6770bbb4f09bc6a
Showing with 25 additions and 1 deletion.
  1. +3 −1 lang/sbcl/Portfile
  2. +11 −0 lang/sbcl/files/patch-Config.ppc-darwin
  3. +11 −0 lang/sbcl/files/patch-Config.x86-darwin
@@ -1,4 +1,4 @@
# $Id: Portfile,v 1.32 2006/07/03 18:07:18 gwright Exp $
# $Id: Portfile,v 1.33 2006/07/16 06:13:29 jkh Exp $

PortSystem 1.0
name sbcl
@@ -47,6 +47,8 @@ worksrcdir ${name}-${version}
checksums ${name}-${version}-source${extract.suffix} \
md5 d37a369e387286a0ceca51dbd8d1b173

patchfiles patch-Config.x86-darwin patch-Config.ppc-darwin

post-patch { reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \
${worksrcpath}/src/runtime/runtime.c
reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \
@@ -0,0 +1,11 @@
--- src/runtime/Config.ppc-darwin.orig 2006-07-15 14:36:03.000000000 -0700
+++ src/runtime/Config.ppc-darwin 2006-07-15 14:36:20.000000000 -0700
@@ -9,7 +9,7 @@
# provided with absolutely no warranty. See the COPYING and CREDITS
# files for more information.

-CFLAGS = -g -Wall -O2 -fdollars-in-identifiers
+CFLAGS = -g -Wall -O2 -fdollars-in-identifiers -D_NONSTD_SOURCE=1
OS_SRC = bsd-os.c darwin-os.c ppc-darwin-os.c ppc-darwin-dlshim.c ppc-darwin-langinfo.c
OS_LIBS = -lSystem -lc
OS_OBJS = ppc-darwin-rospace.o
@@ -0,0 +1,11 @@
--- src/runtime/Config.x86-darwin.orig 2006-07-15 11:52:56.000000000 -0700
+++ src/runtime/Config.x86-darwin 2006-07-15 11:53:24.000000000 -0700
@@ -9,7 +9,7 @@
# provided with absolutely no warranty. See the COPYING and CREDITS
# files for more information.

-CFLAGS = -g -Wall -O2 -fdollars-in-identifiers
+CFLAGS = -g -Wall -O2 -fdollars-in-identifiers -D_NONSTD_SOURCE=1
OS_SRC = bsd-os.c x86-bsd-os.c darwin-os.c x86-darwin-os.c ppc-darwin-dlshim.c x86-darwin-langinfo.c
OS_LIBS = -lSystem -lc -ldl
OS_OBJS = x86-darwin-rospace.o

0 comments on commit a1b1f25

Please sign in to comment.
You can’t perform that action at this time.