summaryrefslogtreecommitdiff
path: root/sysinfo/os
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-06-04 15:54:31 +0000
committermidipix <writeonce@midipix.org>2018-06-05 08:30:03 -0400
commit9b9b9e47f43bc59874a013813cab1d1112edd88b (patch)
tree0a53911670bfb01c2f2f1f6cfd875409e7e0b407 /sysinfo/os
parent11d0ff9e408352f705948d170918c51504496548 (diff)
downloadbcparser-9b9b9e47f43bc59874a013813cab1d1112edd88b.tar.bz2
bcparser-9b9b9e47f43bc59874a013813cab1d1112edd88b.tar.xz
build system: PE targets: mdso integration: support non-default --libpath.
Diffstat (limited to 'sysinfo/os')
-rw-r--r--sysinfo/os/pe.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysinfo/os/pe.mk b/sysinfo/os/pe.mk
index 1b02484..e8e1759 100644
--- a/sysinfo/os/pe.mk
+++ b/sysinfo/os/pe.mk
@@ -6,6 +6,7 @@ LDFLAGS_SONAME += -Wl,-soname
LDFLAGS_SONAME += -Wl,$(DSO_SONAME)
LDFLAGS_SHARED += $(LDFLAGS_SONAME)
+DSO_LIBPATH ?= loader
PE_SUBSYSTEM ?= windows
LDFLAGS_COMMON += -Wl,--subsystem=$(PE_SUBSYSTEM)
@@ -38,7 +39,7 @@ clean-implib:
ifeq ($(OS_IMPLIB_TOOL),mdso)
$(IMPLIB_VER): $(IMPLIB_DEF)
- $(MDSO) -m $(HOST_BITS) -i $(IMPLIB_VER) -n $(DSO_VER) $(IMPLIB_DEF)
+ $(MDSO) -m $(HOST_BITS) -i $(IMPLIB_VER) -n $(DSO_VER) -l $(DSO_LIBPATH) $<
else ifeq ($(OS_IMPLIB_TOOL),dlltool)