Skip to content

Commit

Permalink
d/package-notes.mk: also check Meson specific LD env var
Browse files Browse the repository at this point in the history
Meson uses CC_LD and CXX_LD instead of plain LD
  • Loading branch information
bluca committed Jul 13, 2024
1 parent d438dac commit aaeaa5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion debian/package-notes.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
# Include from debian/rules to use with dh_package_notes.
# See dh_package_notes(1) for details

# llvm does not support spec files
# llvm does not support spec files. Check for Meson-specific env vars too.
ifeq ( ,$(filter lld, $(LD)))
ifeq ( ,$(filter lld, $(CC_LD)))
ifeq ( ,$(filter lld, $(CXX_LD)))
# Ubuntu implemented this in dpkg-buildpackage, make this a no-op to avoid duplication
include /usr/share/dpkg/vendor.mk
ifneq ($(DEB_VENDOR),Ubuntu)
Expand All @@ -20,4 +22,6 @@ export DEB_LDFLAGS_MAINT_APPEND+= -specs=/usr/share/debhelper/dh_package_notes/d
endif
endif
endif
endif
endif

0 comments on commit aaeaa5e

Please sign in to comment.