cs: add needed header space for Mac OS executables
This commit is contained in:
parent
66efceee0e
commit
0fc4f69d1e
|
@ -262,8 +262,8 @@
|
|||
(+ link-edit-addr (round-up-page link-edit-vmlen)))])
|
||||
(unless ((+ end-cmd new-cmd-sz) . < . min-used)
|
||||
(error 'check-header
|
||||
"no room for a new section load command (current end is ~a; min used is ~a)"
|
||||
end-cmd min-used))
|
||||
"no room for a new section load command (current end is ~a; min used is ~a; need ~a)"
|
||||
end-cmd min-used new-cmd-sz))
|
||||
;; Shift commands starting with link-edit command:
|
||||
(unless link-edit-pos (error "LINKEDIT not found"))
|
||||
(file-position p link-edit-pos)
|
||||
|
|
|
@ -213,7 +213,7 @@ RKTFW = $(RKTFWDIR)/Racket
|
|||
GRAPPSKEL = GRacketCS.app/Contents/Info.plist
|
||||
|
||||
racketcs@OSX@: main.o $(RKTFW)
|
||||
$(CC) $(CFLAGS) -o racketcs main.o -F. -framework Racket
|
||||
$(CC) $(CFLAGS) -o racketcs main.o -F. -framework Racket $(LDFLAGS)
|
||||
/usr/bin/install_name_tool -change "Racket.framework/Versions/$(FWVERSION)_CS/Racket" "@executable_path/Racket.framework/Versions/$(FWVERSION)_CS/Racket" racketcs
|
||||
|
||||
GRACKET_BIN = GRacketCS.app/Contents/MacOS/GracketCS
|
||||
|
@ -222,7 +222,7 @@ gracketcs@OSX@:
|
|||
$(MAKE) $(GRACKET_BIN)
|
||||
|
||||
$(GRACKET_BIN): grmain.o $(RKTFW) $(GRAPPSKEL)
|
||||
$(CC) $(CFLAGS) -o $(GRACKET_BIN) grmain.o -F. -framework Racket
|
||||
$(CC) $(CFLAGS) -o $(GRACKET_BIN) grmain.o -F. -framework Racket $(LDFLAGS)
|
||||
/usr/bin/install_name_tool -change "Racket.framework/Versions/$(FWVERSION)_CS/Racket" "@executable_path/../../../Racket.framework/Versions/$(FWVERSION)_CS/Racket" $(GRACKET_BIN)
|
||||
|
||||
$(GRAPPSKEL): $(srcdir)/../../mac/osx_appl.rkt $(srcdir)/../../racket/src/schvers.h $(srcdir)/../../mac/icon/GRacket.icns
|
||||
|
|
1
racket/src/cs/c/configure
vendored
1
racket/src/cs/c/configure
vendored
|
@ -3909,6 +3909,7 @@ case "$host_os" in
|
|||
PREFLAGS="$PREFLAGS -DOS_X"
|
||||
MACH_OS=osx
|
||||
LIBS="${LIBS} -lncurses -framework CoreFoundation"
|
||||
LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names"
|
||||
if test "${enable_xonx}" == "no" ; then
|
||||
INCLUDEDEP="-include"
|
||||
OSX=""
|
||||
|
|
|
@ -215,6 +215,7 @@ case "$host_os" in
|
|||
PREFLAGS="$PREFLAGS -DOS_X"
|
||||
MACH_OS=osx
|
||||
LIBS="${LIBS} -lncurses -framework CoreFoundation"
|
||||
LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names"
|
||||
if test "${enable_xonx}" == "no" ; then
|
||||
INCLUDEDEP="-include"
|
||||
OSX=""
|
||||
|
|
Loading…
Reference in New Issue
Block a user