Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 869175 Details for
Bug 835854
games-arcade/supertux-0.6.3-r2 fails to compile: ld: compositor.cpp:(.text+0x5d5): undefined reference to _obstack_begin
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
A patch which is working on a musl system
supertux-obstack.patch (text/plain), 1.75 KB, created by
fordhenry2299
on 2023-09-02 02:46:28 UTC
(
hide
)
Description:
A patch which is working on a musl system
Filename:
MIME Type:
Creator:
fordhenry2299
Created:
2023-09-02 02:46:28 UTC
Size:
1.75 KB
patch
obsolete
>diff --git a/CMakeLists.txt b/CMakeLists.txt >index b77029c0a..e57bba7b3 100644 >--- a/CMakeLists.txt >+++ b/CMakeLists.txt >@@ -1265,6 +1265,9 @@ else(WIN32 AND NOT UNIX) > endif(WIN32 AND NOT UNIX) > include(CPack) > >+find_package(obstack REQUIRED) >+target_link_libraries(supertux2_lib PUBLIC ${OBSTACK_LIBRARY}) >+ > # move some config clutter to the advanced section > mark_as_advanced( > INSTALL_SUBDIR_BIN >diff --git a/mk/cmake/Findobstack.cmake b/mk/cmake/Findobstack.cmake >new file mode 100644 >index 000000000..483639865 >--- /dev/null >+++ b/mk/cmake/Findobstack.cmake >@@ -0,0 +1,33 @@ >+# - Find obstack >+# Figure out if obstack is in glibc or if it musl-obstack or elsewhere >+# >+# OBSTACK_LIBRARY - Library to use obstack >+# OBSTACK_FOUND - True if found. >+message(STATUS "Checking availability of obstack library") >+INCLUDE(CheckLibraryExists) >+if (OBSTACK_LIBRARY) >+ # Already in cache, be silent >+ set(OBSTACK_FIND_QUIETLY TRUE) >+endif (OBSTACK_LIBRARY) >+find_library(OBSTACK_LIBRARY >+ NAMES obstack >+ PATHS /usr/lib /usr/local/lib /usr/lib64 /usr/local/lib64 ~/usr/local/lib ~/usr/local/lib64 >+) >+if (OBSTACK_LIBRARY) >+ set(OBSTACK_FOUND TRUE) >+ set(OBSTACK_LIBRARY ${OBSTACK_LIBRARY}) >+ set(CMAKE_REQUIRED_LIBRARIES ${OBSTACK_LIBRARY}) >+else (OBSTACK_LIBRARY) >+ set(OBSTACK_LIBRARY "") >+endif (OBSTACK_LIBRARY) >+if (OBSTACK_FOUND) >+ if (NOT OBSTACK_FIND_QUIETLY) >+ message(STATUS "Found obstack library: ${OBSTACK_LIBRARY}") >+ endif (NOT OBSTACK_FIND_QUIETLY) >+else (OBSTACK_FOUND) >+ set(OBSTACK_FOUND TRUE) >+ message(STATUS "Assuming obstack is in libc") >+endif (OBSTACK_FOUND) >+mark_as_advanced(OBSTACK_LIBRARY) >+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_SOURCE_DIR}/config.h) >+message(STATUS "Checking availability of obstack library - done")
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 835854
:
767653
| 869175