[GHC] #8350: shm_open and shm_unlink not detected on openSUSE Linux
#8350: shm_open and shm_unlink not detected on openSUSE Linux -------------------------------------------+-------------------------- Reporter: trommler | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: libraries/unix | Version: 7.7 Keywords: | Operating System: Linux Architecture: Unknown/Multiple | Type of failure: Other Difficulty: Easy (less than 1 hour) | Test Case: Blocked By: | Blocking: Related Tickets: | -------------------------------------------+-------------------------- The test in libraries/unix/configure fails to detect shm_* functions on openSUSE. The -lrt flag is passed as part of CFLAGS rather than in LIBS and so it appears before the object file referencing the shm_* function. Note: The openSUSE linker sets --as-needed by default and hence the order of linker options does matter. The attached patch fixes the issue. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8350> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8350: shm_open and shm_unlink not detected on openSUSE Linux -------------------------------+------------------------------------------- Reporter: trommler | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: | Version: 7.7 libraries/unix | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Linux | Difficulty: Easy (less than 1 hour) Type of failure: Other | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------+------------------------------------------- Changes (by trommler): * status: new => patch -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8350#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8350: shm_open and shm_unlink not detected on openSUSE Linux -------------------------------+------------------------------------------- Reporter: trommler | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: | Version: 7.7 libraries/unix | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: Linux | Difficulty: Easy (less than 1 hour) Type of failure: Other | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------+------------------------------------------- Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed Comment: Merged in {{{ commit 996bd23fe75ec7be9533a040abf3d5e6035e8e0c Author: Peter Trommler <ptrommler@acm.org> Date: Tue Sep 24 13:44:54 2013 +0200 Fix library detection of shm* on openSUSE (#8350) Use the new AC_SERACH_LIBS to check if rt is needed for shm_open and shm_unlink. This sets LIBS and so the shm_* functions can be found if librt is indeed required. Passing -lrt through CFLAGS is not portable. Signed-off-by: Austin Seipp <austin@well-typed.com> }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8350#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC