[Bug ada/65477] gnat is built with nodlopen
pavel at zhukoff dot net
gcc-bugzilla@gcc.gnu.org
Fri Mar 20 08:43:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65477
--- Comment #1 from Pavel Zhukov <pavel at zhukoff dot net> ---
This patch works for me:
Build:
http://koji.fedoraproject.org/koji/taskinfo?taskID=9275707
Patch:
diff --git a/gcc/ada/gcc-interface/Makefile.in
b/gcc/ada/gcc-interface/Makefile.in
index b552d3d..69d55aa 100644
--- a/gcc/ada/gcc-interface/Makefile.in
+++ b/gcc/ada/gcc-interface/Makefile.in
@@ -2818,14 +2818,14 @@ gnatlib-shared-default:
gnatlib
$(RM) $(RTSDIR)/libgna*$(soext)
cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
- | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`
-shared -Wl,-z,nodlopen $(GNATLIBCFLAGS) \
+ | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`
-shared -Wl,-z $(GNATLIBCFLAGS) \
$(PICFLAG_FOR_TARGET) \
-o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
$(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
$(MISCLIB) -lm
cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
- | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`
-shared -Wl,-z,nodlopen $(GNATLIBCFLAGS) \
+ | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`
-shared -Wl,-z $(GNATLIBCFLAGS) \
$(PICFLAG_FOR_TARGET) \
-o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
$(GNATRTL_TASKING_OBJS) \
More information about the Gcc-bugs
mailing list