* debian/patches/use_pie_for_apps: Explicitly build all executables with
authorAaron M. Ucko <ucko@debian.org>
Mon, 3 Jun 2013 02:59:12 +0000 (02:59 +0000)
committerAaron M. Ucko <ucko@debian.org>
Mon, 3 Jun 2013 02:59:12 +0000 (02:59 +0000)
  -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.

debian/changelog
debian/patches/use_pie_for_apps
debian/rules

index 7b51bcad322ab075c7171adfc17e75e786152e6a..9d57c497a4c1842729b5d88feb4cfc68e95c8b6c 100644 (file)
@@ -1,8 +1,12 @@
 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
 
index c4528e0362e6c0a4361c931a0c131a86478e09a3..30173324763fb3807204ae68790b7598f9751446 100644 (file)
@@ -1,13 +1,13 @@
 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
  
@@ -18,3 +18,12 @@ Last-Update: 2012-05-10
  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)" "@:"
index 76998faadd28d848248daccfbf78566934fde4c3..c3052851101a2d0f3e18f9168e8f9467c3982975 100755 (executable)
@@ -42,8 +42,7 @@ override_dh_auto_configure:
 
 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