libatomic, being shipped as part of gcc, should be available on all
platforms (even if they don't need it.) Or so I hope, at least...
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* added mkdir+chown /var/lib/frr which is now used by FRR
* sysconfdir and localstatedir configure args are no longer needed
* NB: refer to never-released 8.5.2-1 changes below!
+ * Link libatomic unconditionally (closes: #1067077)
-- David Lamparter <equinox-debian@diac24.net> Tue, 30 Apr 2024 16:34:16 +0200
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-ifneq (,$(filter $(DEB_HOST_ARCH), armel m68k mipsel powerpc sh4))
- export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
-endif
-
ifneq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
MAKE_SILENT="V=0"
export DH_VERBOSE=0
dh $@ -Bbuild --with=sphinxdoc
override_dh_auto_configure:
- $(shell dpkg-buildflags --export=sh); \
+ $(shell dpkg-buildflags --export=sh); export LIBS="$$LIBS -latomic"; \
dh_auto_configure -- \
--sbindir=/usr/lib/frr \
--with-vtysh-pager=/usr/bin/pager \