Skip to content

Commit

Permalink
make: Link libelf in libsimavr.so.1 target
Browse files Browse the repository at this point in the history
The build (sometimes) fails if libsimavr.so.1 is not linked with
libelf (see https://bugs.archlinux.org/task/40309).
  • Loading branch information
schuay committed May 20, 2014
1 parent d521cd8 commit 1be4877
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simavr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ endif
#
${OBJ}/libsimavr.so.1 : ${sim_o}
ifeq ($(V),1)
$(CC) -shared -Wl,-soname,libsimavr.so.1 -o $@ $^
$(CC) -shared -Wl,-soname,libsimavr.so.1 -o $@ $^ $(LDFLAGS)
else
@echo SHARED $@
@$(CC) -shared -Wl,-soname,libsimavr.so.1 -o $@ $^
@$(CC) -shared -Wl,-soname,libsimavr.so.1 -o $@ $^ $(LDFLAGS)
endif

${OBJ}/libsimavr.so : ${OBJ}/libsimavr.so.1
Expand Down

0 comments on commit 1be4877

Please sign in to comment.