[Mesa-dev] [PATCH] st/xa: Link with -Wl,-r instead of -r.
Jakob Bornecrantz
jakob at vmware.com
Mon Mar 5 13:27:48 PST 2012
----- Ursprungligt meddelande -----
> 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 b42e619..9a822a0 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)
> + $(CC) -Wl,-r -nostdlib -o $(XA_LIB_NAME) $(OBJECTS)
>
> install: FORCE
>
Looks good, do you have commit access?
Cheers Jakob.
More information about the mesa-dev
mailing list