[MacPorts] #64822: wireguard-go @0.0.20220117: Undefined symbols _clock_gettime _getentropy

MacPorts noreply at macports.org
Tue Apr 16 18:38:41 UTC 2024


#64822: wireguard-go @0.0.20220117: Undefined symbols _clock_gettime _getentropy
---------------------------+----------------------
  Reporter:  juhnhooo      |      Owner:  cardi
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  yosemite
      Port:  wireguard-go  |
---------------------------+----------------------

Comment (by RobK88):

 Make sure you add this to your portfile for your `hello-world.go` program.


 {{{
 PortGroup           legacysupport 1.1

 pre-build {
 #   Sierra and earlier
     if { ${os.platform} eq "darwin" && ${os.major} < 17 } {
         build.env-append    GO_EXTLINK_ENABLED="1" \
 GO_LDFLAGS="\"-extldflags=${configure.ldflags}\"" \
                             CGO_LDFLAGS="-g -O2 ${configure.ldflags}"
     }
 }
 }}}

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


More information about the macports-tickets mailing list