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>
29 lines
482 B
Plaintext
29 lines
482 B
Plaintext
if FPM
|
|
if HAVE_PROTOBUF
|
|
lib_LTLIBRARIES += fpm/libfrrfpm_pb.la
|
|
endif
|
|
endif
|
|
|
|
fpm_libfrrfpm_pb_la_LDFLAGS = $(LIB_LDFLAGS) -version-info 0:0:0
|
|
fpm_libfrrfpm_pb_la_CPPFLAGS = $(AM_CPPFLAGS) $(PROTOBUF_C_CFLAGS)
|
|
fpm_libfrrfpm_pb_la_SOURCES = \
|
|
fpm/fpm.h \
|
|
fpm/fpm_pb.h \
|
|
fpm/fpm_pb.c \
|
|
# end
|
|
|
|
if FPM
|
|
if HAVE_PROTOBUF
|
|
nodist_fpm_libfrrfpm_pb_la_SOURCES = \
|
|
fpm/fpm.pb-c.c \
|
|
# end
|
|
endif
|
|
endif
|
|
|
|
CLEANFILES += \
|
|
fpm/fpm.pb-c.c \
|
|
fpm/fpm.pb-c.h \
|
|
# end
|
|
|
|
EXTRA_DIST += fpm/fpm.proto
|