summaryrefslogtreecommitdiff
path: root/solenv/inc/settings.mk
AgeCommit message (Collapse)Author
2013-02-15rhbz#908674: Adapt rtl::Allocator::construct to C++11Stephan Bergmann
...otherwise, at least with some --with-system-boost versions and C++11 compilers, like with Fedora's boost-1.50.0-4.fc18.x86_64 and gcc-c++-4.7.2-8.fc18.x86_64, using this to copy-construct an instance of boost::unordered::detail::ptr_node<std::pair<rtl::OUString,Bootstrap_Impl*>> in the call to p_bootstrap_map->insert(...) in rtl_bootstrap_args_open (sal/rtl/source/bootstrap.cxx) would memcopy the ptr_node and fail to call rtl_uString_acquire, leading to memory corruption later on when rtl_uString_release is called one time too often. It is not entirely clear to me whether this is a shortcoming of the given Boost version, but this patch solves the problem and brings rtl::Allocator::construct in line with the (changed) Allocator requirements of C++11 anyway. The problem potentially lurks with every use of rtl::Allocator, but only showed now begining with LO 4.0 where e5111574fd904b38a3980ca4ea3d21cfcb22dea6 "Revert 'sb140: sb140: #i116981# clean up memory upon exit'" re-introduced code into rtl_bootstrap_args_open that inserts into a boost::unordered_map that uses rtl::Allocator. (cherry picked from commit c91d353872b7d4e1a39192bff1444b46cab6e5eb) Conflicts: config_host/config_global.h.in ...solved by resorting to the old -DHAVE_CXX11_PERFECT_FORWARDING logic spread across various solenv/.../*.mk instead. Change-Id: I3be22f59a8eb49d31458480c27f3ce15803c7fd4 Reviewed-on: https://gerrit.libreoffice.org/2166 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
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?). (cherry picked from commit 77d3777c8934171a9557a96872d020cf12443fb9, minus the code that addressed Windows C4005 warnings -- which after all were due to unrelated changes for PCH rather than this commit) Conflicts: postprocess/prj/build.lst Change-Id: Ie138a219fbbc86fb5aaa7ea0b88cf349935d9829
2012-10-22make dmake use C(XX)FLAGS from the environment tooLuboš Luňák
Change-Id: I2214674181c137a312b0109e7d19a1fd2fc942be
2012-10-22clean up configure options for debugging buildLubos Lunak
By default a product (non-developer) build is done. Code is optimized and no debugging information is included (may be overriden though, see below). Developers should preferably build with --enable-dbgutil , or at least --enable-debug. The --enable-symbols switch has been removed. Use explicit CFLAGS/CXXFLAGS/LDFLAGS instead if needed. With --enable-debug optimizations are turned off and debugging information is included (in order to make it possible to examine the code in a debugger). Additionally assertions and logging is enabled (see SAL_WARN/SAL_INFO documentation for details and better control). This switch should primarily by used for occassional development (such as when it is needed to debug one module in a non-debug build, see also 'make DEBUG=true' below). Using --enable-dbgutil is the recommended developer option. In addition to --enable-debug it also enables additional checks, such as debugging mode for STL or checking compiler plugins. This switch may also enable additional logging from obsolete debugging tools (which should be converted to SAL_WARN/SAL_INFO for better control). Note that this option makes the build binary incompatible from a --disable-dbgutil build, so it is not possible to mix them. When using --enable-debug/--enable-dbgutil , the build is noticeably larger because of the included debugging information (compiler -g option). When disk space is an issue (or the computer is not very powerful), the --enable-selective-debuginfo option allow specifying where the debugging information should or should not be used. The option takes a list of arguments, where all means everything, - prepended means not to enable, / appended means everything in the directory; there is no ordering, more specific overrides more general, and disabling takes precedence). For example, --enable-selective-debuginfo="all -sw/ -Library_sc" enables debugginfo for everything except for anything in the sw module and the sc library. Explicitly specified CFLAGS/CXXFLAGS/LDFLAGS override optimization and debugging options (can be now also passed to configure which will make the build system use them). If in a non-debug build it is needed to temporary build something as a debug build, 'make DEBUG=true' temporarily works as if --enable-debug was specified. It also temporarily overrides debuginfo disabled using --enable-selective-debuginfo. Old code using old logging functionality also has a concept of a debug level, forced using 'make DBGLEVEL=2'. Using a debug level of 2 (or higher) enables additional logging output. New code should use SAL_WARN/SAL_INFO and use extra areas for additional logging output that can be selectively enabled/disabled using SAL_LOG variable. (Some smaller parts of this design will be implemented by separate follow-up commits.) Change-Id: Ia6420ee3c99c217ead648e8967165eed7f632258
2012-10-03No code sets COMPnTYPELIST any moreStephan Bergmann
Change-Id: I6ef6a7dea7a5f594b907546e8dff39c3640d7509
2012-09-15Let --enable-assert-always-abort affect setting NDEBUG directlyStephan Bergmann
For one, assert.h is designed to be includeable multiple times with changing NDEBUG settings, so it is not robust to include it early in sal/macros.h with "correct" NDEBUG settings and potentially include it again later. For another, there is #ifndef NDEBUG code providing functionality used exclusively within assert calls, which must be compiled with the same NDEBUG-setting as the relevant #include <assert.h>. Change-Id: I7b2f9c85f8e2155051274757c64162ed5a5e9d1b
2012-09-06gbuild: disable symbols on --enable-dbgutil --disable-symbolsMichael Stahl
Due to the setup of gb_DEBUGLEVEL in gbuild.mk, gb_SYMBOL was always enabled when --enable-dbgutil is set, with no way to override it. Fix that by turning configure's ENABLE_SYMBOLS into a tri-state, where the new "FALSE" value, set by an explicit --disable-symbols, overrides any implicit way of enabling symbols. But by default an --enable-dbgutil still enables gb_SYMBOL. Change-Id: I94c609863980ed1ab9c73d7a4861c394442b531d
2012-08-31-DRTL_USING for dmake modules as wellCaolán McNamara
following logic of 608025986 Change-Id: I016b76bf350432a29e02d528814584c5dbbfff61
2012-08-29ecj knows about -source -targetCaolán McNamara
Change-Id: Ieb26135bb5eeee5cd472becf704e75bcbeeb8518
2012-07-20Support for --with-java-target-version in gbuildStephan Bergmann
...had been missing. Old dmake-based build system did not add -source/-target when using gcj (unless gcj really was Eclipse Java Compiler, in which case those -source/-target values were tunneled in via JAVAFLAGS)---hopefully all this is no longer necessary. (Also removed a single use of JAVA_TARGET_FLAG that was nowhere defined.) Change-Id: Ic3596691b622be45e151333981f8f236d11825b4
2012-05-29$(OUTDIR)/inc/*minor.mk is created my gbuild nowDavid Tardon
Actually I think it should be removed entirely, because dmake already includes minor.mk directly from solenv, but I do not want to pry into it right now... Change-Id: I51520642f4796d722cb2131e91e9e92a82920531
2012-05-24fdo#50162 merge rtlbootstrap.mk into configure.inDavid Ostrovsky
Change-Id: I241be2704a069ec1f6be5861084039569673cc12
2012-04-14really replace SDK with SDKBINDavid Tardon
2012-03-29Only basename in component uris in DISABLE_DYNLOADING case here, tooTor Lillqvist
2012-03-21Add separate switch for disabling of dynamic loading (iOS) for orthogonalityTor Lillqvist
2012-03-02translations converted to gbuildMatúš Kukan
2012-02-23bootstrap replacement c++ help componentCaolán McNamara
2012-02-16-Werror in dmake modules went missingCaolán McNamara
2012-02-05avoid exporting un-necessary symbol/alias for stable scriptsNorbert Thiebaud
2012-02-01A few safe replacements of pathes->pathsJesús Corrius
2012-01-15Galaxy (default) icon theme is now in icon-themes/galaxyStefan Knorr (astron)
2011-12-20Abandon attempt to use the debug CRT in a dbgutil buildTor Lillqvist
2011-12-12I don't see VCL or NT351 being checked in any ifdefTor Lillqvist
So drop the GVER thing and -DVCL and -DNT351.
2011-12-11UPDATER, whatever it means, was fixed at YES, so factor outTor Lillqvist
2011-12-11The common_build stuff is surely obsoleteTor Lillqvist
2011-11-27remove pch from the include listNorbert Thiebaud
2011-11-27remove PCH support in dmake-moduleNorbert Thiebaud
2011-11-22New sal/log.h obsoletes osl/diagnose.h and tools/debug.hxx.Stephan Bergmann
* New SAL_INFO..., SAL_WARN... macros. * New SAL_STREAM supersedes OSL_FORMAT. * oustringostreaminserter.hxx moved from unotest to rtl (and always UTF-8 now). * TODO to enable GCC __attribute__((format)) in sal/log.h (requires call-site cleanup). * Further functionality in tools/debug.hxx (DBG_MEMTEST, DBG_CTOR, etc.) not yet addressed. * Some replacements tools String -> rtl::OUString.
2011-11-15removing obsolete layout codeFelix Zhang
2011-11-10New LO_{LIB,JAVA}_DIR make special inbuild component handling superfluous.Stephan Bergmann
2011-10-24Undo basis/brand split: removed RPATH BRAND (same as OOO now).Stephan Bergmann
2011-10-18Undo basis/brand split: move program/classes/ from basis to brand.Stephan Bergmann
Also removed apparently unused UNO_JAVA_COMPPATH ProfileItem.
2011-10-03I don't think _DLL_ has any meaning eitherTor Lillqvist
2011-10-03Bin Hamburg "build server" and BSCLIENT stuffTor Lillqvist
2011-10-03No need for -DSHAREDLIB, not tested in any source fileTor Lillqvist
2011-10-03No need for -DCUI or -DGUITor Lillqvist
2011-10-01comment typosCaolán McNamara
2011-09-30-fthreadsafe-statics uses a single lock on Mac OS X and thus leads to deadlock.Stephan Bergmann
2011-09-28remove checks for unused BUILD_SPECIAL environment variableAndras Timar
2011-09-23Undo basis/brand split: move dynamic libraries from basis to brand.Stephan Bergmann
2011-09-20Removed unused BOXT feature.Stephan Bergmann
2011-09-19Removed --leak-check=yes from CppUnit valgrind/memcheck calls.Stephan Bergmann
Can be enabled via VALGRIND_OPTS=--leak-check=yes.
2011-08-15Cosmetics: Don't bother with -D$(GUI) if $(GUI)==$(OS) anywayTor Lillqvist
2011-07-01Goodbye to CWS_WORK_STAMPTor Lillqvist
2011-06-23Use correct CPPLCC when cross-compilingTor Lillqvist
2011-06-21Add EXECPOST_FOR_BUILDTor Lillqvist
2011-06-18Need to special-case AUGMENT_LIBRARY_PATH for cross-compilation to Windows, sighTor Lillqvist
2011-06-17add GLIBCXX_FORCE_NEW for memcheckCaolán McNamara
2011-06-17Don't run any cppunittester when cross-compilingTor Lillqvist
2011-06-14Add MISC_FOR_BUILD variantTor Lillqvist