mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 13:20:12 +00:00

like the other automake variables, setting `xyz_LDFLAGS` causes
`AM_LDFLAGS` to be ignored for `xyz`. For some reason I had in my mind
that automake doesn't do this for LDFLAGS, but... it does. (Which is
consistent with `_CFLAGS` and co.)
So, all the libraries and modules have been ignoring `AM_LDFLAGS` (which
includes `SAN_FLAGS` too). Set up new `LIB_LDFLAGS` and
`MODULE_LDFLAGS` to handle all of this correctly (and move these bits to
a central location.)
Fixes: #9034
Fixes: 0c4285d77e
("build: properly split CFLAGS from AC_CFLAGS")
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
20 lines
392 B
Plaintext
20 lines
392 B
Plaintext
if HAVE_PROTOBUF3
|
|
lib_LTLIBRARIES += mlag/libmlag_pb.la
|
|
endif
|
|
|
|
mlag_libmlag_pb_la_LDFLAGS = $(LIB_LDFLAGS) -version-info 0:0:0
|
|
mlag_libmlag_pb_la_CPPFLAGS = $(AM_CPPFLAGS) $(PROTOBUF_C_CFLAGS)
|
|
mlag_libmlag_pb_la_SOURCES = \
|
|
# end
|
|
|
|
nodist_mlag_libmlag_pb_la_SOURCES = \
|
|
mlag/mlag.pb-c.c \
|
|
# end
|
|
|
|
CLEANFILES += \
|
|
mlag/mlag.pb-c.c \
|
|
mlag/mlag.pb-c.h \
|
|
# end
|
|
|
|
EXTRA_DIST += mlag/mlag.proto
|