Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
It's not always possible (if at all) to pass -Werror in the CFLAGS,
since autoconf often generates test-code that produces warnings.
Example/reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734104
Signed-off-by: Haru <haru@dotalux.com>
|
|
The errors affected the script output when passing an invalid value to
various --enble-xxx=yyy options.
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Fixed a -Wshorten-64-to-32 warning in case there's no thread-local-storage available
- Disabled -Wcast-align for the time being
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
|
|
Also add compiler flag for check for missing noreturn attributes.
|
|
|
|
Add all missing -Wformat flags into configure.
|
|
Add -Wcast-qual into configure comment.
|
|
Now it's handled like all other libraries, and no longer adds an
useless -I/usr/include option
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- This fixes PCRE search failures on FreeBSD and on OS X with Homebrew
- Thanks to ultramage
Signed-off-by: Haru <haru@dotalux.com>
|
|
It prevent for show funcstion names in stack in asserts.
|
|
|
|
|
|
|
|
- Follow-up to 300668d, thanks to AnnieRuru
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Fixes an issue preventing to compile on non-ELF systems (i.e. OS X)
using recent gcc versions (such as 5.2) that are unable to filter out
this option where it's not needed.
- Thanks to Smokexyz for reporting the issue.
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
Improved compatibility, portability and standards conformance.
- Since it is not possible to portably and reliably re-use the core's
symbols in plugins, symbols are no longer exported unless explicitly
required, in the UNIX builds. This mimics the Windows behavior and
adds HPM compatibility to OSes such as FreeBSD. Credits to Andrei Karas
for making this possible.
- For convenience, it is no longer necessary to call GET_SYMBOL, since
the plugin will automatically import all the available symbols when
it's loaded, depending on the included headers.
- Plugins are now supposed to include the "common/hercules.h" header
before including anything else. Incluing common/HPMi.h,
common/cbasetypes.h or conf/core.h is no longer necessary, as those
are guaranteed to be automatically included by hercules.h.
- HPM API version bumped to 1.1.
Signed-off-by: Haru <haru@dotalux.com>
|
|
- This fixes plugin compilation on FreeBSD and Debian failing due to a
missing -fPIC, in combination with some upcoming changes.
Signed-off-by: Haru <haru@dotalux.com>
|
|
and higher.
For enable LTO need run: ./configure --enable-lto
|
|
- This fixes compilation on systems such as FreeBSD, where -lexecinfo
is necessary, or Cygwin, where execinfo.h is not available.
Signed-off-by: Haru <haru@dotalux.com>
|
|
Also enable in configure linker flag -rdynamic.
|
|
Fix small typo.
|
|
This will allow fine-grained detection of the sanitizer options
supported by the current compiler.
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
If set check_occupied_cells to 0 it will allow walk to occupied cells
And it heavy reduce CPU usage on walking.
|
|
It was blocked in configure.
|
|
This flag hide some usefull warnings.
|
|
- This allows Hercules to correctly detect MariaDB and other drop-in
replacements in distributions that rename their libmysqlclient (i.e.
Debian / Ubuntu renaming it to libmariadbclient).
- Closes issue #368
- Due to a bug in Ubuntu 14.04 LTS (incorrect output by the
mariadb-provided version of `mysql_config --libs` and missing
dependencies of libmariadbclient-dev), users of said distribution will
have to manually specify ./configure LIBS="-lssl -lcrypto" as well as
manually install the libssl-dev package, if they wish to use
libmariadbclient-dev, as it will be unable to link otherwise (note:
this issue isn't Hercules-specific)
- Special thanks to Andrei Karas
Signed-off-by: Haru <haru@dotalux.com>
|
|
- It is now possible to pass custom LIBS values to ./configure by
specifying them on the command line
Signed-off-by: Haru <haru@dotalux.com>
|
|
This option enable static build for server binaries and map cache.
For plugins this option enable static linking with gcc.
|
|
This option add run time checks for buffer overflows and some other
memory related things.
Not recommended for production.
|
|
- Functions that expect a printf-style format string are now marked as
such, so that gcc/clang will emit a warning warn you if you mismatch
format string and arguments.
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Language extensions, such as _GNU_SOURCE are now enabled through
CPPFLAGS by the configure script, rather than within the source code.
- Moved some configure-time CFLAGS to CPPFLAGS, where appropriate.
- Fixes bugreport:8211, thanks to Neoth
http://hercules.ws/board/tracker/issue-8211-compiling-warning-in-linux
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Follow-up to c50e094dff1898badd4136d9cdeb7318c803cb61
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Fixed some warnings we had missed.
- Improved -W cflag detection routines.
- Only use -Wshadow if it's actually useful.
Signed-off-by: Haru <haru@dotalux.com>
|
|
- They are now on par with the Xcode project (and similar to the MSVC
ones) - this will make it easier to notice issues before committing in
future.
- If this causes, on your system, warnings that we didn't detect, please
let us know!
Signed-off-by: Haru <haru@dotalux.com>
|
|
- No functional changes. That's just the correct OS X file extension for
dynamic libs.
Signed-off-by: Haru <haru@dotalux.com>
|
|
- The --disable-packetver-re (or --enable-packetver-re=no) flag
prevents the definition of PACKETVER_RE (without editing mmo.h)
- The --with-key1=, --with-key2=, --with-key3= flags override the
encryption key defined by the current packetver. All three flags are
required if at least one is used, or they'll be ignored.
- These options are mostly useful for buildbots, developers who often
use git bisect, or users who want to minimize their diffs and still
want to override those settings.
- (unrelated minor tweak) Silenced an unnecessarily verbose STDERR
message caused by the $CC shipped with clang-5 during the MinGW check.
|