From 1be487742be6b9f811f032611ddde54a5de53883 Mon Sep 17 00:00:00 2001 From: Jakob Gruber Date: Tue, 20 May 2014 10:38:04 +0200 Subject: [PATCH] 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). --- simavr/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5