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

Mac OSX -lrt in benchmark Makefile causing linking problem #50

Closed
g1mv opened this issue Sep 14, 2013 · 3 comments
Closed

Mac OSX -lrt in benchmark Makefile causing linking problem #50

g1mv opened this issue Sep 14, 2013 · 3 comments

Comments

@g1mv
Copy link

g1mv commented Sep 14, 2013

On OSX everything now compiles fine, there is just one remaining issue while linking :

Making all in benchmark
  CC       benchmark-timer.o
  CC       benchmark-benchmark.o
  CCLD     benchmark
ld: library not found for -lrt
collect2: error: ld returned 1 exit status
make[1]: *** [benchmark] Error 1
make: *** [all-recursive] Error 1

Removing the -lrt in benchmark/Makefile solved the problem.

@nemequ
Copy link
Member

nemequ commented Sep 14, 2013

Would you mind trying http://paste.fedoraproject.org/39549/79146407/ before I push it?

@g1mv
Copy link
Author

g1mv commented Sep 14, 2013

Tested ... works perfectly 😄

@nemequ
Copy link
Member

nemequ commented Sep 14, 2013

Thanks :)

commit a30603f
Author: Evan Nemerson evan@coeus-group.com
Date: Sat Sep 14 01:12:19 2013 -0700

benchmark: don't link with -lrt unless we find clock_gettime there

https://github.com/quixdb/squash/issues/50

Signed-off-by: Evan Nemerson <evan@coeus-group.com>

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

No branches or pull requests

2 participants