From: Xiretza Date: Mon, 14 Jun 2021 09:35:38 +0000 (+0200) Subject: Makefile: don't bake DESTDIR into libyosys DT_SONAME X-Git-Tag: yosys-0.10~126 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c31ecfab8a39513676656699982a3e7860a9ad6;p=yosys.git Makefile: don't bake DESTDIR into libyosys DT_SONAME DESTDIR is only used as a temporary destination for installed files before they are packaged into an archive; the "real" installed location is determined by PREFIX/{BIN,LIB,DAT}DIR. --- diff --git a/Makefile b/Makefile index 77c448687..aaf0398cc 100644 --- a/Makefile +++ b/Makefile @@ -676,9 +676,9 @@ $(PROGRAM_PREFIX)yosys$(EXE): $(OBJS) libyosys.so: $(filter-out kernel/driver.o,$(OBJS)) ifeq ($(OS), Darwin) - $(P) $(LD) -o libyosys.so -shared -Wl,-install_name,$(DESTDIR)$(LIBDIR)/libyosys.so $(LDFLAGS) $^ $(LDLIBS) + $(P) $(LD) -o libyosys.so -shared -Wl,-install_name,$(LIBDIR)/libyosys.so $(LDFLAGS) $^ $(LDLIBS) else - $(P) $(LD) -o libyosys.so -shared -Wl,-soname,$(DESTDIR)$(LIBDIR)/libyosys.so $(LDFLAGS) $^ $(LDLIBS) + $(P) $(LD) -o libyosys.so -shared -Wl,-soname,$(LIBDIR)/libyosys.so $(LDFLAGS) $^ $(LDLIBS) endif %.o: %.cc