86744f0399
This tries to get rid of a lot of cruft from older builds and it
also aims to build as much as possible on Windows.
The firebird-cygwin-msvc-warnings.patch should be optional. It
gets rid of various compiler warnings on Windows, either by
disableing or fixing them:
- fix: D9002 - ignoring unknown option '-fno-rtti'
- fix: D9024 - unrecognized source file type <filename>, object
file assumed
- ign: C4291 - <declaration>: no matching operator delete found;
memory will not be freed if initialization throws an exception
- ign: C4477 - <function>: format string <string> requires an
argument of type <type>, but variadic argument number has
type <type>
And I explicitly got rid of the "win32" handling and simply use
arch depending patches on Windows, which strips additional stuff.
sberg adds: I have no idea how in an upstream macOS build the empbuild
executible in gen/examples should now find @rpath/lib/libfbclient.dylib, as it
does not have an RPATH set. So add an appropriate one in
external/firebird/firebird-macosx.patch.1's patch of
builds/posix/Makefile.in.examples (which needs to know whether we do a Debug or
a Release build; an attempt of using firebird's $(IsDeveloper) for that caused
other failures, see bca0dc97bf
"Revert
'external/firebird: Pass --enable-developer into configure'", so use LO's
$(ENABLE_DEBUG) and rely on that being exported from LO's make into firebird's
make). Also, the fbclient and Engine12 dylibs now have RPATHs set which we do
not need in LO (where we still stick to our general use of @loader_path), so
drop them in external/firebird/ExternalProject_firebird.mk (even though leaving
them in should be harmless).
Change-Id: Id34bb88900d15f89adda03e34af2ac3d4f6aa085
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105440
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
63 lines
1.6 KiB
Diff
63 lines
1.6 KiB
Diff
--- builds/posix/fbintl.vers
|
|
+++ builds/posix/fbintl.vers
|
|
@@ -29,3 +29,4 @@
|
|
LD_lookup_texttype
|
|
LD_setup_attributes
|
|
LD_version
|
|
+_ZTI*
|
|
--- builds/posix/fbplugin.vers
|
|
+++ builds/posix/fbplugin.vers
|
|
@@ -26,3 +26,4 @@
|
|
#
|
|
|
|
firebird_plugin
|
|
+_ZTI*
|
|
--- builds/posix/firebird.vers
|
|
+++ builds/posix/firebird.vers
|
|
@@ -367,3 +367,4 @@
|
|
|
|
KEYWORD_stringIsAToken
|
|
KEYWORD_getTokens
|
|
+_ZTI*
|
|
--- builds/posix/make.defaults
|
|
+++ builds/posix/make.defaults
|
|
@@ -252,7 +252,7 @@
|
|
# LINKER OPTIONS
|
|
#
|
|
|
|
-UNDEF_PLATFORM = -Wl,--no-undefined
|
|
+UNDEF_PLATFORM =
|
|
ifeq ($(TARGET),Debug)
|
|
UNDEF_FLAGS = $(UNDEF_PLATFORM)
|
|
endif
|
|
@@ -291,7 +291,7 @@
|
|
LIB_LINK_MAPFILE= -Wl,--version-script,$(1)
|
|
FIREBIRD_LIBRARY_LINK= -L$(LIB) -lfbclient $(MATHLIB)
|
|
|
|
-EXE_LINK_OPTIONS= $(LDFLAGS) $(THR_FLAGS) $(UNDEF_FLAGS) $(LIB_PATH_OPTS) $(LINK_EMPTY_SYMBOLS)
|
|
+EXE_LINK_OPTIONS= $(LDFLAGS) $(THR_FLAGS) $(UNDEF_FLAGS) $(LIB_PATH_OPTS)
|
|
LIB_LINK_OPTIONS= $(LDFLAGS) $(THR_FLAGS) -shared
|
|
|
|
FB_DAEMON = $(BIN)/firebird$(EXEC_EXT)
|
|
--- src/common/classes/alloc.cpp
|
|
+++ src/common/classes/alloc.cpp
|
|
@@ -2535,7 +2535,7 @@
|
|
const char* myStack = &probeVar;
|
|
const char* thisLocation = (const char*) this;
|
|
ptrdiff_t distance = thisLocation - myStack;
|
|
- fb_assert(absVal(distance) < 128 * 1024);
|
|
+ //fb_assert(absVal(distance) < 128 * 1024);
|
|
}
|
|
#endif
|
|
|
|
--- src/common/os/posix/mod_loader.cpp
|
|
+++ src/common/os/posix/mod_loader.cpp
|
|
@@ -92,7 +92,7 @@
|
|
|
|
ModuleLoader::Module* ModuleLoader::loadModule(ISC_STATUS* status, const Firebird::PathName& modPath)
|
|
{
|
|
- void* module = dlopen(modPath.nullStr(), FB_RTLD_MODE);
|
|
+ void* module = dlopen(modPath.nullStr(), FB_RTLD_MODE | RTLD_GLOBAL);
|
|
if (module == NULL)
|
|
{
|
|
if (status)
|