f42a61e76a
Commit 996672933a
has made the
freebsd-g++46 mkspec use g++-base.conf, which on its turn resets
QMAKE_CC and QMAKE_CXX to other values.
Redefine them to gcc46 and g++46, respectively (and fix the linker
values) after the inclusion of g++-unix.conf so the settings are not
lost.
Change-Id: I2d03548fdc492c5e4c4744b636b29df2cefe2acd
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
62 lines
1.5 KiB
Plaintext
62 lines
1.5 KiB
Plaintext
#
|
|
# qmake configuration for freebsd-g++46 (using g++46 from ports/lang/gcc)
|
|
#
|
|
|
|
MAKEFILE_GENERATOR = UNIX
|
|
TARGET_PLATFORM = unix
|
|
TEMPLATE = app
|
|
CONFIG += qt warn_on release link_prl gdb_dwarf_index
|
|
QT += core gui
|
|
|
|
QMAKE_CFLAGS_THREAD = -pthread -D_THREAD_SAFE
|
|
|
|
QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD
|
|
|
|
# Addon software goes into /usr/local on the BSDs, by default we will look there
|
|
QMAKE_INCDIR = /usr/local/include
|
|
QMAKE_LIBDIR = /usr/local/lib
|
|
QMAKE_INCDIR_X11 = /usr/X11R6/include
|
|
QMAKE_LIBDIR_X11 = /usr/X11R6/lib
|
|
QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS]
|
|
QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS]
|
|
QMAKE_INCDIR_OPENGL = /usr/X11R6/include
|
|
QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib
|
|
|
|
QMAKE_LFLAGS_THREAD = -pthread
|
|
|
|
QMAKE_LIBS =
|
|
QMAKE_LIBS_DYNLOAD =
|
|
QMAKE_LIBS_X11 = -lXext -lX11 -lm
|
|
QMAKE_LIBS_X11SM = -lSM -lICE
|
|
QMAKE_LIBS_OPENGL = -lGL
|
|
QMAKE_LIBS_OPENGL_QT = -lGL
|
|
QMAKE_LIBS_THREAD =
|
|
|
|
QMAKE_AR = ar cqs
|
|
QMAKE_OBJCOPY = objcopy
|
|
QMAKE_RANLIB =
|
|
|
|
QMAKE_TAR = tar -cf
|
|
QMAKE_GZIP = gzip -9f
|
|
|
|
QMAKE_COPY = cp -f
|
|
QMAKE_MOVE = mv -f
|
|
QMAKE_DEL_FILE = rm -f
|
|
QMAKE_DEL_DIR = rmdir
|
|
QMAKE_CHK_DIR_EXISTS = test -d
|
|
QMAKE_MKDIR = mkdir -p
|
|
include(../common/unix.conf)
|
|
include(../common/gcc-base-unix.conf)
|
|
include(../common/g++-unix.conf)
|
|
|
|
# Redefined here because g++-base.conf sets QMAKE_CC and QMAKE_CXX
|
|
# to gcc and g++, respectively.
|
|
QMAKE_CC = gcc46
|
|
QMAKE_CXX = g++46
|
|
QMAKE_LINK_C = $$QMAKE_CC
|
|
QMAKE_LINK_C_SHLIB = $$QMAKE_CC
|
|
QMAKE_LINK = $$QMAKE_CXX
|
|
QMAKE_LINK_SHLIB = $$QMAKE_CXX
|
|
|
|
load(qt_config)
|