2011-04-27 10:05:43 +00:00
|
|
|
#
|
|
|
|
# qmake configuration for openbsd-g++
|
|
|
|
#
|
|
|
|
|
2013-03-19 01:57:31 +00:00
|
|
|
MAKEFILE_GENERATOR = UNIX
|
2016-06-09 09:33:51 +00:00
|
|
|
QMAKE_PLATFORM = openbsd
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2016-06-09 09:33:51 +00:00
|
|
|
include(../common/bsd/bsd.conf)
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2016-06-09 09:33:51 +00:00
|
|
|
# Addon software goes into /usr/local on OpenBSD, by default we will look there
|
2013-03-19 01:57:31 +00:00
|
|
|
QMAKE_INCDIR = /usr/local/include
|
|
|
|
QMAKE_LIBDIR = /usr/local/lib
|
2016-06-09 09:33:51 +00:00
|
|
|
|
|
|
|
# System provided X11 defaults to X11R6 path on OpenBSD
|
2013-03-19 01:57:31 +00:00
|
|
|
QMAKE_INCDIR_X11 = /usr/X11R6/include
|
|
|
|
QMAKE_LIBDIR_X11 = /usr/X11R6/lib
|
|
|
|
QMAKE_INCDIR_OPENGL = /usr/X11R6/include
|
|
|
|
QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2016-07-07 11:35:35 +00:00
|
|
|
QMAKE_RPATHDIR += $$QMAKE_LIBDIR_X11
|
|
|
|
|
2016-06-09 09:33:51 +00:00
|
|
|
include(../common/gcc-base-unix.conf)
|
|
|
|
include(../common/g++-unix.conf)
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2016-07-02 11:48:45 +00:00
|
|
|
# System compiler is gcc 4.2.1 up to OpenBSD 6.0.
|
|
|
|
# For proper C++11 support, we need to use a newer gcc from ports/packages,
|
|
|
|
# where compiler commands are renamed to egcc/eg++. Therefore, redefine
|
|
|
|
# mkspecs/common/g++-base.conf compiler commands
|
|
|
|
QMAKE_CC = egcc
|
|
|
|
|
|
|
|
QMAKE_LINK_C = $$QMAKE_CC
|
|
|
|
QMAKE_LINK_C_SHLIB = $$QMAKE_CC
|
|
|
|
|
|
|
|
QMAKE_CXX = eg++
|
|
|
|
|
|
|
|
QMAKE_LINK = $$QMAKE_CXX
|
|
|
|
QMAKE_LINK_SHLIB = $$QMAKE_CXX
|
|
|
|
|
|
|
|
|
2016-06-09 09:33:51 +00:00
|
|
|
# Reset g++-unix.conf's NOUNDEF flags as OpenBSD libc can't handle environ
|
|
|
|
QMAKE_LFLAGS_NOUNDEF =
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
load(qt_config)
|