Changes between Initial Version and Version 1 of Ticket #56991, comment 78


Ignore:
Timestamp:
Sep 27, 2019, 9:39:39 PM (5 years ago)
Author:
Gcenx
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56991, comment 78

    initial v1  
    11Yeah 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
     3Edit; 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
     18No idea why it doesn't like the command within the portfile but doing that worked