apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46175] Full Mingw+MSys support
Date Sat, 19 Mar 2011 18:31:31 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46175

--- Comment #11 from Jeff Trawick <trawick@apache.org> 2011-03-19 14:31:27 EDT ---
trying this part of the patch (below), I get this failure in the test dir:

.libs/globalmutexchild.o: In function `main':
c:\Users\Trawick\svn\apr-xx\test/globalmutexchild.c:38: undefined reference to
`
apr_initialize'
c:\Users\Trawick\svn\apr-xx\test/globalmutexchild.c:39: undefined reference to
`
apr_terminate'
(and so on)

Index: test/Makefile.in
===================================================================
--- test/Makefile.in    (revision 1083243)
+++ test/Makefile.in    (working copy)
@@ -74,7 +74,7 @@

 # link programs using -no-install to get real executables not
 # libtool wrapper scripts which link an executable when first run.
-LINK_PROG = $(LIBTOOL) $(LTFLAGS) --mode=link $(LT_LDFLAGS) $(COMPILE) \
+LINK_PROG = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LT_LDFLAGS) \
         @LT_NO_INSTALL@ $(ALL_LDFLAGS) -o $@

 # STDTEST_PORTABLE;
Index: configure.in
===================================================================
--- configure.in    (revision 1083243)
+++ configure.in    (working copy)
@@ -292,7 +292,7 @@
 if test "x$use_libtool" = "xyes"; then
       lt_compile='$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -o $@ -c $<
&& touch $@'
       LT_VERSION="-version-info `$get_version libtool $version_hdr APR`"
-      link="\$(LIBTOOL) \$(LTFLAGS) --mode=link \$(LT_LDFLAGS) \$(COMPILE)
\$(LT_VERSION) \$(ALL_LDFLAGS) -o \$@"
+      link="\$(LIBTOOL) \$(LTFLAGS) --mode=link \$(COMPILE) \$(LT_LDFLAGS)
\$(LT_VERSION) \$(ALL_LDFLAGS) -o \$@"
       so_ext='lo'
       lib_target='-rpath $(libdir) $(OBJECTS)'
       export_lib_target='-rpath \$(libdir) \$(OBJECTS)'
@@ -308,6 +308,9 @@
     *-solaris2*)
         apr_platform_runtime_link_flag="-R"
         ;;
+    *-mingw*)
+        LT_LDFLAGS="$LT_LDFLAGS -no-undefined"
+        ;;
     *)
         ;;
 esac

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message