Mesa (master): st/xa: Link with -Wl,-r instead of -r.
Christoph Bumiller
chrisbmr at kemper.freedesktop.org
Sat Apr 7 18:34:04 UTC 2012
Module: Mesa
Branch: master
Commit: 7bb1c784a30124a7259a2cc30356f7d88d27a767
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7bb1c784a30124a7259a2cc30356f7d88d27a767
Author: Johannes Obermayr <johannesobermayr at gmx.de>
Date: Sat Apr 7 20:31:41 2012 +0200
st/xa: Link with -Wl,-r instead of -r.
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 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/state_trackers/xa/Makefile b/src/gallium/state_trackers/xa/Makefile
index 85223f8..2843d23 100644
--- a/src/gallium/state_trackers/xa/Makefile
+++ b/src/gallium/state_trackers/xa/Makefile
@@ -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
More information about the mesa-commit
mailing list