diff --git a/x11/qt2/patches/patch-configs_openbsd-g++-shared b/x11/qt2/patches/patch-configs_openbsd-g++-shared index c26a2287800..db29ff2d9a2 100644 --- a/x11/qt2/patches/patch-configs_openbsd-g++-shared +++ b/x11/qt2/patches/patch-configs_openbsd-g++-shared @@ -22,7 +22,7 @@ # Linking with support libraries # X11 -SYSCONF_LFLAGS_X11 = -L/usr/X11R6/lib -+SYSCONF_LFLAGS_X11 = -L/usr/X11R6/lib -L/usr/local/lib ++SYSCONF_LFLAGS_X11 = -L/usr/X11R6/lib -L$(QTDIR)/lib -L/usr/local/lib SYSCONF_LIBS_X11 = -lXext -lX11 -lm # Qt, Qt+OpenGL SYSCONF_LFLAGS_QT = -L$(QTDIR)/lib @@ -30,7 +30,7 @@ SYSCONF_LIBS_QT_OPENGL = # OpenGL -SYSCONF_LFLAGS_OPENGL = -L/usr/X11R6/lib -+SYSCONF_LFLAGS_OPENGL = -L/usr/local/lib -L/usr/X11R6/lib ++SYSCONF_LFLAGS_OPENGL = -L$(QTDIR)/lib -L/usr/local/lib -L/usr/X11R6/lib SYSCONF_LIBS_OPENGL = -lGLU -lGL -lXmu # Yacc SYSCONF_LIBS_YACC = @@ -40,7 +40,7 @@ -SYSCONF_LFLAGS = -SYSCONF_LIBS = +SYSCONF_LINK = $(SYS_CXX) -+SYSCONF_LFLAGS = -L/usr/X11R6/lib -L/usr/local/lib ++SYSCONF_LFLAGS = -L/usr/X11R6/lib -L$(QTDIR)/lib -L/usr/local/lib +SYSCONF_LIBS = -lz # Link flags for shared objects diff --git a/x11/qt2/patches/patch-configs_openbsd-g++-shared-debug b/x11/qt2/patches/patch-configs_openbsd-g++-shared-debug index 9f689af1e68..f40e3028a22 100644 --- a/x11/qt2/patches/patch-configs_openbsd-g++-shared-debug +++ b/x11/qt2/patches/patch-configs_openbsd-g++-shared-debug @@ -22,7 +22,7 @@ # Linking with support libraries # X11 -SYSCONF_LFLAGS_X11 = -L/usr/X11R6/lib -+SYSCONF_LFLAGS_X11 = -L/usr/X11R6/lib -L/usr/local/lib ++SYSCONF_LFLAGS_X11 = -L/usr/X11R6/lib -L$(QTDIR)/lib -L/usr/local/lib SYSCONF_LIBS_X11 = -lXext -lX11 -lm # Qt, Qt+OpenGL SYSCONF_LFLAGS_QT = -L$(QTDIR)/lib @@ -30,7 +30,7 @@ SYSCONF_LIBS_QT_OPENGL = # OpenGL -SYSCONF_LFLAGS_OPENGL = -L/usr/X11R6/lib -+SYSCONF_LFLAGS_OPENGL = -L/usr/local/lib -L/usr/X11R6/lib ++SYSCONF_LFLAGS_OPENGL = -L$(QTDIR)/lib -L/usr/local/lib -L/usr/X11R6/lib SYSCONF_LIBS_OPENGL = -lGLU -lGL -lXmu # Yacc SYSCONF_LIBS_YACC = @@ -40,7 +40,7 @@ -SYSCONF_LFLAGS = -SYSCONF_LIBS = +SYSCONF_LINK = $(SYS_CXX) -+SYSCONF_LFLAGS = -L/usr/X11R6/lib -L/usr/local/lib ++SYSCONF_LFLAGS = -L/usr/X11R6/lib -L$(QTDIR)/lib -L/usr/local/lib +SYSCONF_LIBS = -lz # Link flags for shared objects