st/xa: Link with -Wl,-r instead of -r.
authorJohannes Obermayr <johannesobermayr@gmx.de>
Sat, 7 Apr 2012 18:31:41 +0000 (20:31 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 7 Apr 2012 18:33:44 +0000 (20:33 +0200)
This is required to link with clang:
  /usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000400160.

src/gallium/state_trackers/xa/Makefile

index 85223f8c0dcac729d95e45e3ca4bf3641d37682c..2843d23e0b27dcba69b78c718a9c84e42d361a3f 100644 (file)
@@ -39,7 +39,7 @@ default: $(XA_LIB_NAME)
 
 # Make the library
 $(XA_LIB_NAME): depend $(OBJECTS)
-       $(CC) -r -nostdlib -o $(XA_LIB_NAME) $(OBJECTS) $(CFLAGS)
+       $(CC) -Wl,-r -nostdlib -o $(XA_LIB_NAME) $(OBJECTS) $(CFLAGS)
 
 install: FORCE