This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with the configure test for .set

On Fri, Mar 28, 2003 at 06:04:38PM -0800, Roland McGrath wrote:
> It's probably fine to use -nostartfiles -nostdlib and make the C file not
> refer to any symbols but the test symbol, e.g.
> 	void _start() { glibc_conftest_frobozz = 1; }
> If you try this and it works, send a patch.

Conveniently, it does.  Tested i686-pc-linux-gnu; the test still
succeeds.  I don't know if it fails on any supported platform or not.

Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

2003-03-31  Daniel Jacobowitz  <drow at mvista dot com>

	* Don't require an installed C library in the test
	for ".set" assembler support.

RCS file: /cvs/glibc/libc/,v
retrieving revision 1.389
diff -u -p -r1.389
---	29 Mar 2003 08:15:27 -0000	1.389
+++	31 Mar 2003 22:41:11 -0000
@@ -977,9 +977,10 @@ EOF
 # (but it doesn't work), so we must do a linking check to be sure.
 cat > conftest1.c <<\EOF
 extern int glibc_conftest_frobozz;
-main () { printf ("%d\n", glibc_conftest_frobozz); }
+void _start() { glibc_conftest_frobozz = 1; }
+	    -nostartfiles -nostdlib \
 	    -o conftest conftest.s conftest1.c 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]