Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have the linker search /usr/local/lib on Linux #6145

Closed

Conversation

define-private-public
Copy link
Contributor

This was causing some issues when I was trying to link a .so of raylib and glfw. /usr/local/lib wasn't in the -rpath option at link time on Linux. It is a common location for users to install libraries on Linux and should be part of the link path.

This was causing some issues when I was trying to link a `.so` of `raylib` and `glfw`.  `/usr/local/lib` wasn't in the `-rpath` option at link time on Linux.  It is a common location for users to install libraries on Linux and should be part of the link path.
@Araq
Copy link
Member

Araq commented Jul 28, 2017

This breaks travis:

/home/travis/build/nim-lang/Nim/nimcache/stdlib_system.o: In function `nimUnloadLibrary':
/home/travis/build/nim-lang/Nim/nimcache/stdlib_system.c:(.text+0x10a91): undefined reference to `dlclose'
/home/travis/build/nim-lang/Nim/nimcache/stdlib_system.o: In function `nimLoadLibrary':
/home/travis/build/nim-lang/Nim/nimcache/stdlib_system.c:(.text+0x10ac5): undefined reference to `dlopen'
/home/travis/build/nim-lang/Nim/nimcache/stdlib_system.o: In function `nimGetProcAddr':
/home/travis/build/nim-lang/Nim/nimcache/stdlib_system.c:(.text+0x10b01): undefined reference to `dlsym'

@cheatfate
Copy link
Member

cheatfate commented Jul 28, 2017

@Araq this breaks Travis because of compiler bug, for some reason clang compiler was set as default compiler... And we don't using clang as default compiler on Travis.

clang: error: linker command failed with exit code 1 (use -v to see invocation)

@define-private-public
Copy link
Contributor Author

Is there something I need to change in the travis CI file?

@dom96
Copy link
Contributor

dom96 commented Aug 11, 2017

That's really strange. Maybe you could try rebasing?

@Araq
Copy link
Member

Araq commented Apr 16, 2018

No feedback, breaks clang, closing.

@Araq Araq closed this Apr 16, 2018
@define-private-public define-private-public deleted the patch-1 branch June 18, 2019 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants