1 | | Yeah I'm digging into it but from what I found {{{-read_only_relocs suppress}}} isn't a valid command anymore since XCode10, the only solution I found online was to use XCode9 (maybe I can just link it's the version of LD) |
2 | | |
3 | | Edit; Ugh I removed the command from within the Portfile and added it into {{{portconfigure.tcl}}} and it now works..... |
4 | | |
5 | | {{{ |
6 | | # add SDK flags if cross-compiling (or universal on ppc tiger) |
7 | | if {${configure.sdkroot} ne ""} { |
8 | | foreach env_var {CPPFLAGS CFLAGS CXXFLAGS OBJCFLAGS OBJCXXFLAGS} { |
9 | | append_to_environment_value configure $env_var -isysroot${configure.sdkroot} |
10 | | } |
11 | | append_to_environment_value configure "LDFLAGS" -Wl,-syslibroot,${configure.sdkroot} |
12 | | append_to_environment_value configure "SDKROOT" ${configure.sdkroot} |
13 | | append_to_environment_value configure "LDFLAGS" -Wl,-w |
14 | | append_to_environment_value configure "LDFLAGS" -Wl,-read_only_relocs,suppress |
15 | | } |
16 | | }}} |
17 | | |
18 | | No idea why it doesn't like the command within the portfile but doing that worked. |
| 1 | Yeah I'm digging into it but from what I found {{{-read_only_relocs suppress}}} ~~isn't a valid command anymore since XCode10, the only solution I found online was to use XCode9 (maybe I can just link it's the version of LD)~~ |