diff options
Diffstat (limited to 't/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec')
2 files changed, 15 insertions, 0 deletions
diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/debian/rules b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/debian/rules new file mode 100755 index 0000000..38cb607 --- /dev/null +++ b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +export DEB_BADFLAGS_MAINT_APPEND = -Wl,--as-needed + +export DEB_GOODFLAGS_MAINT_APPEND = -lprefix -Wl,--no-as-needed -lfoo, -Wl,-as-needed -lsuffix +export DEB_GOODFLAGS_MAINT_APPEND = -lprefix -Wl,--as-needed -Wl,--no-as-needed -lsuffix + +%: + dh $@ + +override_dh_autoreconf: + -dh_autoreconf --as-needed diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/fill-values b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/fill-values new file mode 100644 index 0000000..54f985e --- /dev/null +++ b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: debian-rules-uses-as-needed-linker-flag +Description: Test for --as-needed in debian/rules. |