ncbi-blast+ (2.2.28-2) UNRELEASED; urgency=low
* NOT RELEASED YET.
+ * debian/patches/use_pie_for_apps: Explicitly build all executables with
+ -fPIE -pie, to avoid giving project_tree_builder a partial PIE
+ treatment that now fails on mips and mipsel. (Closes: #710807.)
+ * debian/rules: Retire redundant APP_LDFLAGS override.
- -- Aaron M. Ucko <ucko@debian.org> Sun, 02 Jun 2013 22:55:40 -0400
+ -- Aaron M. Ucko <ucko@debian.org> Sun, 02 Jun 2013 22:59:08 -0400
ncbi-blast+ (2.2.28-1) unstable; urgency=low
Subject: build executables with -fPIE, not -fPIC
-* -fPIC is only useful for shared libraries; substitute -fPIE (to be
- accompanied by appropriate APP_LDFLAGS) when building executables.
+* -fPIC is only useful for shared libraries; substitute -fPIE (along
+ with -pie at link time) when building executables.
Author: Aaron M. Ucko <ucko@debian.org>
Last-Update: 2012-05-10
--- a/c++/src/build-system/Makefile.app.in
+++ b/c++/src/build-system/Makefile.app.in
-@@ -24,8 +24,8 @@
+@@ -24,8 +24,8 @@ default_rule: all
### C/C++ source file compilation (and maybe auto-dependencies) build rules
SOURCES = @UNIX_SRC@ $(SRC)
include $(builddir)/Makefile.$(Rules)
+@@ -72,7 +72,7 @@ rebuild-libs:
+
+ $(XAPP): $(XOBJ) $(XLIBDEP)
+ @-$(RM) .$(XAPP).stamp
+- $(LINK_WRAPPER) $(LINK) $(LDFLAGS) $(APP_LDFLAGS) $(XOBJ) $(XOBJ2) $(PRE_LIBS) $(XLIB) $(XAPP_LIBS) @f_outexe@$(XAPP) $(LINK_FILTER)
++ $(LINK_WRAPPER) $(LINK) $(LDFLAGS) $(APP_LDFLAGS) -fPIE -pie $(XOBJ) $(XOBJ2) $(PRE_LIBS) $(XLIB) $(XAPP_LIBS) @f_outexe@$(XAPP) $(LINK_FILTER)
+ $(STRIP) $(XAPP)
+ $(POST_LINK) $(XAPP)
+ ifneq "$(BINCOPY)" "@:"
override_dh_auto_build:
cd c++/BUILD/build && \
- make -f Makefile.flat all_projects="$(proj)" \
- APP_LDFLAGS='-Wl,-E -fPIE -pie'
+ make -f Makefile.flat all_projects="$(proj)"
override_dh_auto_test:
-dh_auto_test