diff --git a/x11/qt2/patches/patch-configs_openbsd-g++-shared b/x11/qt2/patches/patch-configs_openbsd-g++-shared index 8b52e246d6c..c3b3781e2e0 100644 --- a/x11/qt2/patches/patch-configs_openbsd-g++-shared +++ b/x11/qt2/patches/patch-configs_openbsd-g++-shared @@ -65,7 +65,7 @@ -SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.$(VER_MAJ).$(VER_MIN).$(VER_PATCH) -SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) -Bshareable $(LFLAGS) -o $(DESTDIR)$(SYSCONF_LINK_TARGET_SHARED) `lorder /usr/lib/c++rt0.o $(OBJECTS) $(OBJMOC) | tsort` $(LIBS) +SYSCONF_LINK_SHLIB = $(SYS_CXX) -shared -fPIC -+SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.$(LIBqt_VERSION) ++SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.$(LIB$(TARGET)_VERSION) +SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) $(LFLAGS) -o $(DESTDIR)$(SYSCONF_LINK_TARGET_SHARED) $(OBJECTS) $(OBJMOC) $(LIBS) # Linking static libraries diff --git a/x11/qt2/patches/patch-configs_openbsd-g++-shared-debug b/x11/qt2/patches/patch-configs_openbsd-g++-shared-debug index 8f303eca3f4..56f5039dc62 100644 --- a/x11/qt2/patches/patch-configs_openbsd-g++-shared-debug +++ b/x11/qt2/patches/patch-configs_openbsd-g++-shared-debug @@ -65,7 +65,7 @@ -SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.$(VER_MAJ).$(VER_MIN).$(VER_PATCH) -SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) -Bshareable $(LFLAGS) -o $(DESTDIR)$(SYSCONF_LINK_TARGET_SHARED) `lorder /usr/lib/c++rt0.o $(OBJECTS) $(OBJMOC) | tsort` $(LIBS) +SYSCONF_LINK_SHLIB = $(SYS_CXX) -shared -fPIC -+SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.$(LIBqt_VERSION) ++SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.$(LIB$(TARGET)_VERSION) +SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) $(LFLAGS) -o $(DESTDIR)$(SYSCONF_LINK_TARGET_SHARED) $(OBJECTS) $(OBJMOC) $(LIBS) # Linking static libraries