pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: audio/csound6 and devel/sdl12-compat failing on Darwin (macOS 14.0)



Am Freitag 27 Oktober 2023 um 5:11:54 -0700, schrieb Jason Bacon 2,4K:
> Always happy to help out a hard-working maintainer...
> 
> The "missing run-time search paths" makes me suspect it's in need of
> -install_name in the link command. Another way macOS is "special".
> 
> Here's an example of how building dylibs differs from BSD/Linux shared
> objects:
> 
> https://github.com/outpaddling/libxtend/blob/main/Makefile

Hi Jason,

your Makefile makes sense, while cmake is hard to chew on :-(

I made some progress, I guess...?

- - - - - - - - - - %< - - - - - - - - - -

$NetBSD: patch-CMakeLists.txt,v 1.1 2022/04/01 10:43:05 nia Exp $

Not every unix system has libdl.

--- CMakeLists.txt.orig 2022-03-03 14:56:56.000000000 +0000
+++ CMakeLists.txt
@@ -74,7 +74,7 @@ if(UNIX AND NOT APPLE)
     target_link_libraries(SDL PRIVATE dl)
 endif()
 if(APPLE)
-    set_target_properties(SDL PROPERTIES INSTALL_NAME_DIR "")
+    set_target_properties(SDL PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_LIBDIR}")
     set_target_properties(SDL PROPERTIES COMPILE_DEFINITIONS "_THREAD_SAFE")
     set_target_properties(SDL PROPERTIES LINK_FLAGS
             "-Wl,-compatibility_version,${DYLIB_COMPAT_VERSION} -Wl,-current_version,${DYLIB_CURRENT_VERSION}")

- - - - - - - - - - %< - - - - - - - - - -

- - - - - - - - - - %< - - - - - - - - - -

=> Checking for missing run-time search paths in sdl12-compat-1.2.52nb3
ERROR: lib/libSDL-1.2.0.dylib: relative library path: lib/libSDL-1.2.0.dylib
*** Error code 1

Stop.
bmake[1]: stopped in /Users/mk/pkgsrc/devel/sdl12-compat
*** Error code 1

Stop.
bmake: stopped in /Users/mk/pkgsrc/devel/sdl12-compat

- - - - - - - - - - %< - - - - - - - - - -

Now I don't now again, what to do with the "relative library path"...

Kind regards.


Home | Main Index | Thread Index | Old Index