nDPI/packages
Sam James c2b7d77784
build: respect environment options more (#1392)
* build: update m4/ax_pthread.m4 from serial 23 -> serial 31

Update ax_pthread.m4 to the latest version from the autoconf-archive
project.

Signed-off-by: Sam James <sam@gentoo.org>

* build: properly detect AR, CC, RANLIB

It's necessary to be able to override choice of AR/CC/RANLIB and other toolchain
variables/tools for cross-compilation, testing with other toolchains, and
to ensure the compiler chosen by the user is actually used for the build.

Previously, GNU_PREFIX was kind-of used for this but this isn't a standard
variable (at all) and it wasn't applied consistently anyway.

We now use the standard autoconf mechanisms for finding these tools.

(RANLIB is already covered by LT_INIT.)

Signed-off-by: Sam James <sam@gentoo.org>

* build: use $(MAKE)

This ensures that parallel make works correctly, as otherwise, a fresh
make job will be started without the jobserver fd, and hence
not know about its parent, forcing -j1.

* build: respect CPPFLAGS, LDFLAGS

- CPPFLAGS is for the C preprocessor (usually for setting defines)
- LDFLAGS should be placed before objects for certain flags to work
  (e.g. -Wl,--as-needed)

Signed-off-by: Sam James <sam@gentoo.org>

Co-authored-by: Luca Deri <lucaderi@users.noreply.github.com>
2022-01-18 14:30:14 +01:00
..
etc/ld.so.conf.d Move libraries from /usr/local to /usr 2020-10-29 12:43:33 +01:00
homebrew Added HEAD for homebrew. 2017-05-19 19:34:52 -04:00
openwrt Additional fix related to cf931fda6b. (#1332) 2021-10-10 14:14:02 +02:00
rpm Initial geoip support 2021-02-18 22:35:25 +01:00
ubuntu build: respect environment options more (#1392) 2022-01-18 14:30:14 +01:00
debian ubuntu ndpi/ndpi-dev package (testing) 2018-11-19 11:16:28 +01:00
version.sh Creating shared lib with major version 2018-12-10 16:33:09 +01:00