summaryrefslogtreecommitdiff
path: root/solenv/gbuild/platform/com_GCC_defs.mk
AgeCommit message (Collapse)Author
2013-09-23Try to fix cross-compilationTor Lillqvist
Add more FOO_FOR_BUILD variables and some gb_Foo_for_build functions. Get rid of gb_INSTROOT and gb_DEVINSTALLROOT, just use INSTROOT. Change-Id: Iee531b02d14fae41edb68ad589a5dec829a60255
2013-09-22gbuild: remove libraries from OUTDIR and WORKDIRMichael Stahl
Refactor everything to find and link libraries directly in INSTDIR. - add gb_LinkTarget_get_linksearchpath_for_layer, and use it to set up -L paths for T_LDFLAGS in such a way that only allowed libraries can be linked against; i.e. it's not possible to link URE linktargets against OOO or not-installed libraries - gb_Library_get_target is now same as the gb_LinkTarget_get_target (TODO: this needs cleanup) - since a pattern rule won't work for linking libraries in INSTDIR, add a separate per-file rule for every INSTDIR lib - pattern rule can't find link target in the clean target any more so add a LINKTARGET variable - disable gb_Library_add_auxtarget, no auxtargets need to be copied - tweak the call to gb_Library_Library_platform to pass in a path in sdk/lib for the versioned URE libs - fix the Library clean target - add LAYER parameter to gb_LinkTarget_LinkTarget - adjust platform link commands - MSVC link command now uses explicit -manifestfile and -pdb parameters to keep misc. files out of INSTDIR - remove gb_Helper_OUTDIR_FOR_BUILDLIBDIR - adjust Extension, CppunitTest, JunitTest, PythonTest, Gallery, various CustomTargets to search INSTDIR - remove SDK library symlinks and import libs from odk/Package_lib - on Mac OS X, put .dylib symlinks into sdk/lib even though those are not packaged and would be created by the SDK configury; we need these to be somewhere for linking anyway - add a (unfortunately cyclic) dependency on Package ure_install to sal Change-Id: I70d88742f8c8232ad7b9521416275c67b64fe6cf
2013-09-22PoC: no libs in solverBjoern Michaelsen
Change-Id: I8efd69d5a6f26fdfd334ff0bc38848eccc7a85fd
2013-09-09install whole sdk using filelistsMatúš Kukan
Change-Id: I9d8d0a20d776740c4701ec9a1facded9f4bde77a
2013-08-14EXCEPTIONS_OFF is never definedStephan Bergmann
...since gb_LinkTarget_NOEXCEPTIONFLAGS became unused with e81b1f23c49e35c1cde1faa44281812e97be60f5 "remove gb_LinkTarget_add_noexception_object." Change-Id: I4a7275b5b26a9d4b6ded66efb52e6866e6e09cc3
2013-08-09try to ensure not testing GCC version when using ClangLuboš Luňák
Clang reports itself as GCC 4.2.1 when asked the GCC way, which is about as good an answer as any, since there's no good mapping between them. So when testing GCC version, Clang would be usually considered too old, and therefore the proper way is to do a configure check if possible. GCC version should be only used for GCC-specific things such as avoiding a bug in a specific GCC version, and such testing should first check the compiler is not Clang. Rename GCCVER to GCC_VERSION and use it throughout the build system where needed. As it's empty for anything that's not GCC, this should lead to errors when used incorrectly. Change-Id: Iea96bbaf5d8ceabefa25be88576eeb4115384937
2013-07-17kill gb_NoexPrecompiledHeaderBjoern Michaelsen
Change-Id: I34b6cc6eceb8f326ba7e353d3d1aee3c93ea02bd Reviewed-on: https://gerrit.libreoffice.org/4956 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2013-06-13Enable -fstrict-aliasing, -fstrict-overflow in -O0 debug buildsStephan Bergmann
...so that -Wstrict-aliasing, -Wstrict-overflow=1 included in -Wall do not only produce warnings/errors in non-debug builds. Change-Id: I4534427738fa7688853564e8c7255a0c3cd199e1
2013-04-24libpython.so is now in instdirPeter Foley
Change-Id: Ib1b1a853d265a28bfab19c0fa25b778fcec92ba6
2013-04-24Update location of log-areas.doxTor Lillqvist
Change-Id: If54a3d7047f13ae9c9345c21737a89afee645403
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks
2013-04-11create --enable-mergelibs=all optionPeter Foley
Support cramming everything into one big merged library as well as only the libraries depended upon by almost everything. Change-Id: I69647037dc62840294ba670d5d6c172a4608bf3f
2013-04-06library path var on AIX is LIBPATHCaolán McNamara
Change-Id: I34529a56c6e6073fd5fa1e30d148fc3ec0d87617
2013-03-27Enable -Wunused-macrosStephan Bergmann
Change-Id: Ic37205ac7750ba0cad2f60309ae56b9c7a14d711
2013-03-26No (more/apparent) need for LIBO_WERRORStephan Bergmann
Change-Id: I8483047631f512513cae017fdbb2dee77ce0f52f
2013-03-20add -Wundef to compiler flagsLuboš Luňák
http://lists.freedesktop.org/archives/libreoffice/2013-March/047769.html Change-Id: I61ab4b6b536e77d153f44b9f8569b49e0be60002
2013-03-18Revert "add -Wundef to compiler flags"Luboš Luňák
This reverts commit 22771babcc47b294d528d56cec360e2a94daec26. There are still some setups in which this causes errors with WaE.
2013-03-18add -Wundef to compiler flagsLuboš Luňák
http://lists.freedesktop.org/archives/libreoffice/2013-March/047769.html Change-Id: I61ab4b6b536e77d153f44b9f8569b49e0be60002
2013-03-04make lto workPeter Foley
Change-Id: Iab6892368c6ba6bb5b83132cdcd6aa959c3b0e1f
2013-03-02more lto fixesPeter Foley
Change-Id: I97eb27a354dfb6b6d94886729c5b6df0b0f7687a
2013-02-09make it possible to limit what files will be modified by a compiler pluginLuboš Luňák
Change-Id: I4e3e8f5ca5e5b5b59b1bd067281f90940dd893b1
2013-02-01gbuild: copy stdlibs into solver again when they are bundled in the installerPetr Mladek
Otherwise the build --without-system-stdlibs fails; This option is used for the universal Linux build Change-Id: I0f7d87bb161d50748fee05f9c3f6a4b87b788aa4 Reviewed-on: https://gerrit.libreoffice.org/1938 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-01-31Use separate config_*.h files for BUILD and HOST when cross-compilingTor Lillqvist
We have only been lucky so far that there hasn't been any compilation errors caused by using the HOST platform config_*.h files also for the BUILD platform. But as more and more information found out during configury is stored in config_*.h files, sooner or later it will be a problem. Move config/* to config_host/*. When not cross-compiling, the config_*.h files in config_host expanded from config_*.h.in are all there is. When cross-compiling, the generated config_*.h files for the BUILD platform are put into a config_build folder. Then use config_build when building the cross_toolset and config_host otherwise. Change-Id: I3c28cc83866bffd696b45d00dfb68e00bc2ae538
2012-12-27Check for __GNUC__ instead of GCC in sourcesTor Lillqvist
We still have checks for $(COM) being GCC or MSC in makefiles, of course. But there is no reason to pass -D$(COM) to compilations. Checking the built-in compiler-specific macros __GNUC__, _MSC_VER (etc) is the right thing to do. Change-Id: Ia961a29ba74e2c4977e5300a92318f38104c6592
2012-12-21gbuild: AsmObject: support user defined AFLAGSMichael Stahl
There does not seem to be a point to using CFLAGS here, usual convention appears to be to use AFLAGS. Not target local, since right now there is no need for that. Change-Id: I5d2f45777c226c0afc632adc21e446f09740d75d
2012-12-17Remove --with-stlport from LO 4.0Stephan Bergmann
The STLport was only built for the benefit of old extensions on platforms that once used it themselves (Linux x86, Solaris x86 and SPARC, Windows). We deliberately break such old extensions for LO 4.0 by no longer shipping that backwards-compatiblity cludge. Keeps STLport listed in readlicense_oo/ because of o3tl/inc/o3tl/compat_functionality.hxx. Also removes GXX_INCLUDE_PATH, as that was only used by STLport (if at all?). Removes a spurious #define MOVEFILE_REPLACE_EXISTING 0x01 from l10ntools/inc/helpmerge.hxx that was once added with 854812584862d0609b695682d2bfea2667d75c00 "INTEGRATION: CWS extensionl10nfix01 (1.11.6); FILE MERGED: 2008/06/26 13:56:03 ihi 1.11.6.1: #i90987# windows rename -> MoveFileEx" but now starts to cause trouble on Windows. Also disables warning C4005 about redefinition of WB_LEFT/RIGHT macros (defined in both tools/wintypes.hxx and the Windows API) in a number of places that include windows.h -- however the old STLport caused those warnings to not show. Change-Id: Ie138a219fbbc86fb5aaa7ea0b88cf349935d9829
2012-12-11adjust clang plugins for srcdir != builddirLuboš Luňák
Change-Id: Ie4c934b52c4b010703e91f84b83e1fe590b5d187
2012-12-11BUILD_DIR -> BUILDDIR, to be consistent with the other *DIRLuboš Luňák
Change-Id: Ia80a1246a7e3c8862a50a3daf79aba5609b7df3a
2012-12-11Prepare for read-only source buildNorbert Thiebaud
This patch allows to do mkdir <build_dir> cd <build_dir> <src_root>/autogen.sh make Only the remaining dmake modules are poluting the <src_root>... which will get eventually convererd to gmake... Change-Id: Iefd64732fa12e096d554cff4eee6b777deb92338 Reviewed-on: https://gerrit.libreoffice.org/1273 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-12-10PCH support for Clang compilerLuboš Luňák
Change-Id: I17a9f3c0b16cef7ea4ef3db938337545beef3609
2012-12-07use config_xxx.h files instead of -DHAVE_XXX on the command lineLuboš Luňák
As the latter does not quite scale, and also source files depending on the setting/feature did not rebuild in case of a change. There are intentionally more config_xxx.h files (so autoheader from autotools is not used), so that a setting change does not force automatically a rebuild of everything. Running configure does not touch those config_xxx.h files that have not changed. There's config/README with a howto. Change-Id: I6d6e82050ff8faf5364ed246848b8401aca3e0e5
2012-11-03gbuild: add beginning of gcov supportNorbert Thiebaud
Change-Id: If5b551c46de4afae2393a6320d08c191feafc358
2012-10-26set up CCACHE_EXTRAFILES too, just like ICECC_EXTRAFILESLuboš Luňák
Change-Id: I39ce208c1e5dd307631c628217ff596632753f23
2012-10-24Revert "gbuild: add a kludge to get dictionaries to build in cygwin:"Michael Stahl
This reverts commit 6292b12acfdddd51a816fad3b3ea8073a58eb3c2. Should no longer be necessary after git submodules migration.
2012-10-23gbuild: remove INCLUDE_STL and misc stlport stuffMichael Stahl
Change-Id: I99a3e097865bd5305886e2d5f91e86d0d691de22
2012-10-22use (gb_)ENABLE_DBGUTIL rather than the confusing (gb_)PRODUCTLubos Lunak
Using --enable-debug already makes the build a non-product build, so this whole 'product' notion is rather confusing when reading the build system code. Change-Id: I4bb6b879a6bcd8c76c4b48ddaccb433ab8eb4bb2
2012-10-15support for compiler rewritersLuboš Luňák
Change-Id: I12e98ac9fc49ef2007914324006a396d183b778c
2012-10-13compiler check to compare SAL_WARN/LOG areas against sal/inc/sal/log-areas.doxLuboš Luňák
Some of the areas are guesses I've added after seeing them, whoever feels reponsible for whichever part of the code feel free to adjust them. Change-Id: I2192de84d51cc2bc7c28fa84019d38b465985d15
2012-10-09initial support for clang compiler pluginsLuboš Luňák
The plugin is intentionally built using a custom Makefile, because it's used by gbuild, so I don't want to build the plugin using gbuild too. It is also intentionally not placed under workdir/, as that is cleaned by 'make clean', the plugin is cleaned only by 'make distclean', so that cleaning it doesn't cause ccache misses. No actual functionality in the plugin itself yet. Change-Id: Ic05eba8d6260eec123c9e699eb5385abfe1b832f
2012-10-04Clean up HAVE_THREADSAFE_STATICSStephan Bergmann
Change-Id: I042269aabaa2e9952c5d2f41cf93e55d654f6313
2012-09-29move gb_Executable_EXT_for_build to platform/Matúš Kukan
Change-Id: Ica30efee4fcd030dcc063321ba678a00bec726cd
2012-09-22fix URE depsDavid Tardon
Change-Id: Ifbcd2c7db1985ca8fcc74dbbe74ffb93177d6490
2012-09-22allow Library to disable hidden visibilityMatúš Kukan
Change-Id: I1f676b7536183f68795595f216ae23610cadb1eb
2012-09-21Cut/paste typosStephan Bergmann
Change-Id: I2ff0ee983d008d580bd9d52cedc2643293b9710e
2012-09-21Honour preset LD_LIBRARY_PATH etc. in gbuild, tooStephan Bergmann
There is always the question whether we should add in front or after any existing value. I add after here, mainly to keep gb_Helper_extend_ld_path consistent and simple. Also, WNT_INTEL_MSC JunitTest was causing the Java code to call soffice with empty (instead of unaugmented) PATH. Change-Id: I3888c0a9085cee7052eb6ea1ed7bbf4a2ea14408
2012-08-27Move -DHAVE_GCC_BUILTIN_ATOMIC to solenv/gbuildStephan Bergmann
Change-Id: I82f62c998837783ac69317123268b0c87f74425f
2012-08-09gbuild: add a kludge to get dictionaries to build in cygwin:Michael Stahl
Due to the scourge of symlinked git repositories, building the configuration files in dictionaries fails on cygwin because the native xsltproc cannot understand cygwin symlinks; work around that with a new gb_Helper_symlinked_native function. Should be reverted once git sub modules liberate us from the scourge. Change-Id: Idc48da9b60348dc66160219909479c3c83daeaf2
2012-05-09gbuild: use mixed paths on cygwinMatúš Kukan
make 3.82 understands mixed paths, so use them. This allows us to get rid of evil in BuildDirs.mk. Hopefully, life will be simpler now. Change-Id: I I I641f28c6af1948963f7004f8071af62e21caabb3
2012-05-08gbuild: tie optimization into selective --enable-debug:Michael Stahl
Let --enable-debug determine whether optimization should be disabled, which works also for debug=t due to the setup in gbuild.mk. Also clean up uses of gb_COMPILEROPTFLAGS: this is now always set to optimization settings, and gb_COMPILERNOOPTFLAGS used in debug case, which should not make a difference because the only actual difference was that on MSVC the debug OPTFLAGS were empty, but -Od is documented as the default for this.
2012-04-23configure checks for gcc options that clang does not supportLuboš Luňák
Maybe they'll be supported somewhen in the future, so do not hardcode them out. Also, gb_DEBUG_C(XX)FLAGS are apparently common GCC options, not platform-specific.