From: Jakob Gruber Date: Tue, 20 May 2014 08:38:04 +0000 (+0200) Subject: make: Link libelf in libsimavr.so.1 target X-Git-Tag: v1.2^0 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=1be487742be6b9f811f032611ddde54a5de53883;p=sx%2Fsimavr.git make: Link libelf in libsimavr.so.1 target The build (sometimes) fails if libsimavr.so.1 is not linked with libelf (see https://bugs.archlinux.org/task/40309). --- diff --git a/simavr/Makefile b/simavr/Makefile index aebc070..30084c7 100644 --- a/simavr/Makefile +++ b/simavr/Makefile @@ -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