Changes between Version 3 and Version 4 of Ticket #67874


Ignore:
Timestamp:
Aug 4, 2023, 4:04:19 AM (16 months ago)
Author:
danh1979
Comment:

modified patch for this port to use a patch for mosquitto's CMakeLists.txt instead of an extra command line arg

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #67874 – Description

    v3 v4  
    99  {{{#!diff
    1010diff --git a/net/mosquitto/Portfile b/net/mosquitto/Portfile
    11 index 61e7927e..61d0702f 100644
     11index 61e7927e..5271927c 100644
    1212--- a/net/mosquitto/Portfile
    1313+++ b/net/mosquitto/Portfile
     
    4747                     port:tcp_wrappers \
    4848                     path:lib/libssl.dylib:openssl
    49 @@ -41,7 +43,8 @@ depends_test-append \
     49@@ -38,6 +40,8 @@ depends_lib         port:c-ares \
     50 depends_test-append \
     51                     port:python27
     52 
     53+patchfiles CMAKE_MODULE_LINKER_FLAGS.patch
     54+
    5055 configure.args-append \
    5156                     -DUSE_LIBWRAP:BOOL=ON \
    5257                     -DWITH_SRV:BOOL=ON \
    53 -                    -DWITH_WEBSOCKETS:BOOL=ON
    54 +                    -DWITH_WEBSOCKETS:BOOL=ON \
    55 +                    -DCMAKE_MODULE_LINKER_FLAGS="-undefined dynamic_lookup"
    56 
     58diff --git a/net/mosquitto/files/CMAKE_MODULE_LINKER_FLAGS.patch b/net/mosquitto/files/CMAKE_MODULE_LINKER_FLAGS.patch
     59new file mode 100644
     60index 00000000..ec3044ea
     61--- /dev/null
     62+++ b/net/mosquitto/files/CMAKE_MODULE_LINKER_FLAGS.patch
     63@@ -0,0 +1,12 @@
     64+--- CMakeLists.txt.orig        2023-08-03 23:00:17
     65++++ CMakeLists.txt     2023-08-03 23:00:13
     66+@@ -20,7 +20,7 @@
     67+ endif (WIN32)
     68+
     69+ if(APPLE)
     70+-      set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS} -undefined dynamic_lookup")
     71++      set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -undefined dynamic_lookup")
     72+ endif(APPLE)
     73+
     74+ include(GNUInstallDirs)
     75+
    5776  }}}
    5877}}}