Commit graph

3 commits

Author SHA1 Message Date
Sam James
c4cd135323
build: respect environment options more (#6177)
* build: move away from configure.seed -> configure.ac

Analogous to the change in nDPI [0].

[0] cf931fda6b

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.

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

* build: respect CXX, CXXFLAGS, LDFLAGS/LIBS

- Use standard CXX variable for the C++ compiler
- Respect CXXFLAGS from the environment
- LDFLAGS needs to be before objects in order for some flags to work
  like -Wl,--as-needed

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

* build: add comment for dynamic linking nDPI

It seems to work for me but add a commented
in line for now for convenience, not actually
changing behaviour right now.

(May want to make it a proper configure option
in future.)

Signed-off-by: Sam James <sam@gentoo.org>
2022-01-07 10:16:59 +01:00
Sam James
4e0be8ecd5
build: respect ${PKG_CONFIG} in Makefiles (#6173)
Allow overriding choice of pkg-config binary (this is useful
for cross-compilation in particular) within the Makefiles.

Not yet touching configure, so some work to be done still.

Signed-off-by: Sam James <sam@gentoo.org>
2022-01-03 17:15:06 +01:00
Alfredo Cardigliano
f1fa1c0ad1 json2tlv Makefile 2019-07-17 13:56:09 +00:00