]> git.99rst.org Git - openwrt-packages.git/commit
mdns-repeater: pass through CFLAGS/LDFLAGS and package version
authorFoster Snowhill <redacted>
Sat, 11 Jul 2026 22:53:09 +0000 (00:53 +0200)
committerJosef Schlehofer <redacted>
Thu, 16 Jul 2026 06:46:19 +0000 (08:46 +0200)
commit96c6fdb26af92576b67a05990ece682635eff42f
tree4956f3f31c5a21792bc21e4b20d3816cf7cc8661
parentebb7c18a5d50fee8e79b0ee3e604da1e7339914b
mdns-repeater: pass through CFLAGS/LDFLAGS and package version

Before the change, the feed Makefile would not rely on the predefined
logic of building Makefile-based packages, rather it defined its own
`Build/Compile` step that explicitly called `make`. This didn't play
along well with the upstream Makefile, which doesn't respect the CFLAGS
that come from the environment.

The effect of that was that, for example, `CONFIG_PKG_ASLR_PIE_ALL=y`
was not respected: a non-PIE binary was generated regardless. Other
compiler flags were ignored too in the same manner.

Also it would try to determine the mdns-repeater version by calling to
git, which wouldn't work, since the build system downloaded a pre-made
source tarball without a bundled `.git` directory. The result is an
empty version string when calling `mdns-repeater -h`.

To address all of the above, switch to the built-in logic for
Makefile-type projects. Append to MAKE_FLAGS to completely override
upstream CFLAGS/LDFLAGS and pass through the package version. Set a
dummy HGVERSION variable value to prevent the upstream Makefile from
calling `git` unnecessarily.

Signed-off-by: Foster Snowhill <redacted>
net/mdns-repeater/Makefile
git clone https://git.99rst.org/PROJECT