[MacPorts] #56991: wine cannot be built against the 10.14 SDK

MacPorts noreply at macports.org
Sat Sep 21 02:00:56 UTC 2019


#56991: wine cannot be built against the 10.14 SDK
---------------------------------------------+------------------------
  Reporter:  IComplainInComments             |      Owner:  ryandesign
      Type:  defect                          |     Status:  assigned
  Priority:  Low                             |  Milestone:
 Component:  ports                           |    Version:  2.5.3
Resolution:                                  |   Keywords:  mojave
      Port:  wine wine-devel wine-crossover  |
---------------------------------------------+------------------------

Comment (by Gcenx):

 Thank you Ken for the information and the patched Ports repository I know
 i'm not the only one who will find this useful

 \\
 Using the following caused db48 failed with an error of ld not knowing
 what -isysroot
 {{{
 @@ -893,14 +893,13 @@
                  append_to_environment_value configure $env_var
 -isysroot${configure.sdkroot}
              }
              append_to_environment_value configure "LDFLAGS"
 -Wl,-syslibroot,${configure.sdkroot}
 +            append_to_environment_value configure "LDFLAGS"
 -Wc,-isysroot,${configure.sdkroot}
 +            append_to_environment_value configure "LDFLAGS" -Wl,-w
          }
 }}}


 Instead I did the following

 {{{
 @@ -893,14 +893,12 @@
                  append_to_environment_value configure $env_var
 -isysroot${configure.sdkroot}
              }
              append_to_environment_value configure "LDFLAGS"
 -Wl,-syslibroot,${configure.sdkroot}
 +            append_to_environment_value configure "LDFLAGS" -Wl,-w
          }
 }}}

 Doing the above instead db48 now compiles correctly.


 I used this for the following ports, libGLU, lcms2, cario, cmake
 {{{
 if {${configure.sdkroot} ne ""} {
 configure.cc-append   -isysroot${configure.sdkroot}
 configure.cxx-append  -isysroot${configure.sdkroot}
 configure.ldflags-append -w
 }
 }}}

 The ports I installed were wine requirements listed within wine-devel plus
 libsdl2 and mpg123 at the moment, I still have more ports to install for
 current wine requirements, plus building FAudio from source since macports
 doesn't currently have a port for it (I'm aware of an open request for
 that)

-- 
Ticket URL: <https://trac.macports.org/ticket/56991#comment:27>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list