You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
luametatex: fix build with gcc (e.g. on PPC/10.5/10.6):
* Replace GNU ld flag -Wl,-z,stack-size with Apple ld equivalent -Wl,-stack_size,0x280000 * Replace GNU strip flags (-g -S -d -x) in upstream's post-build strip command with Apple strip compatible flags (-x -S) Fixes: https://trac.macports.org/ticket/74037 Fixes: https://trac.macports.org/ticket/72204
This commit is contained in:
committed by
Dan Ports
parent
e745c83f42
commit
c2877951a7
@@ -24,3 +24,16 @@ checksums rmd160 aa5220eb803e6a8cd67279d52c905ae832925b86 \
|
||||
size 3464142
|
||||
|
||||
compiler.c_standard 2011
|
||||
|
||||
# Fix GCC build (primarily for 10.5/10.6).
|
||||
# 1. Apple's ld doesn't support -z; use -stack_size instead
|
||||
# https://trac.macports.org/ticket/74037
|
||||
# 2. Upstream's post-build strip uses GNU flags (-g -S -d -x) that Apple's
|
||||
# strip doesn't support; use -x -S instead
|
||||
# https://trac.macports.org/ticket/72204
|
||||
post-patch {
|
||||
reinplace "s|-Wl,-z,stack-size=2621440|-Wl,-stack_size,0x280000|g" \
|
||||
${worksrcpath}/CMakeLists.txt
|
||||
reinplace {s|${CMAKE_STRIP} -g -S -d -x|${CMAKE_STRIP} -x -S|g} \
|
||||
${worksrcpath}/cmake/luametatex.cmake
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user