mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-04-27 03:59:10 -05:00
qmake updated conf.pri.example for static build
Static build on MinGW.
This commit is contained in:
+16
-4
@@ -15,17 +15,29 @@
|
||||
win32-g++|win32-clang-g++ {
|
||||
# Libraries
|
||||
# MySQL C library
|
||||
# Find with pkg-config (preferred)
|
||||
mysql_ping:!link_pkgconfig_off {
|
||||
# Find with the pkg-config (preferred), shared build only
|
||||
mysql_ping:!link_pkgconfig_off: \
|
||||
!CONFIG(static, dll|shared|static|staticlib): \
|
||||
!CONFIG(staticlib, dll|shared|static|staticlib) {
|
||||
CONFIG *= link_pkgconfig
|
||||
PKGCONFIG += libmariadb
|
||||
}
|
||||
# Or add manually (use only one)
|
||||
mysql_ping {
|
||||
# Static build
|
||||
else:mysql_ping: \
|
||||
!CONFIG(shared, dll|shared|static|staticlib): \
|
||||
!CONFIG(dll, dll|shared|static|staticlib): \
|
||||
LIBS += -lmariadb.dll
|
||||
|
||||
# Or add manually (use only one method, above or this manual method)
|
||||
mysql_ping: {
|
||||
# For shared build
|
||||
LIBS += -lmariadb
|
||||
# For static build
|
||||
LIBS += -lmariadb.dll
|
||||
}
|
||||
|
||||
# Use faster linker
|
||||
# CONFIG *= use_lld_linker does not work on MinGW
|
||||
QMAKE_LFLAGS *= -fuse-ld=lld
|
||||
}
|
||||
else:win32-msvc {
|
||||
|
||||
@@ -104,6 +104,9 @@ namespace Relations {
|
||||
// CUR autoconfigure qmake with qmake/TinyOrm.pri and TINY_ROOT_DIR and TINY_TINYORM_BUILDS_DIR silverqx
|
||||
// CUR rename export_global.hpp to export_common.hpp silverqx
|
||||
// CUR RC file and manifest for tests silverqx
|
||||
// BUG qmake MinGW UCRT64 clang static build duplicit symbols, this is MinGW bug silverqx
|
||||
// BUG qmake MinGW UCRT64 clang shared build with inline_constants cause crashes of 50% of tests, this will be MinGW clang or clang bug, on unix it works without problems silverqx
|
||||
// BUG cmake MinGW UCRT64 clang static build builds, but cause problem with inline_constants ; shared build with inline_constants cause crashes of 50% of tests, like bug above, this will be MinGW clang or clang bug, on unix it works without problems silverqx
|
||||
/*! Base model class. */
|
||||
template<typename Derived, AllRelationsConcept ...AllRelations>
|
||||
class Model :
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
# MinGW
|
||||
win32-g++|win32-clang-g++ {
|
||||
# Use faster linker
|
||||
# CONFIG *= use_lld_linker does not work on MinGW
|
||||
QMAKE_LFLAGS *= -fuse-ld=lld
|
||||
}
|
||||
else:win32-msvc {
|
||||
|
||||
Reference in New Issue
Block a user