- Link libdricore with gcc instead of ld, so we automagically pick up the

ld --build-id flags.
This commit is contained in:
Adam Jackson 2008-06-05 16:02:44 +00:00
parent d3be028dbe
commit 93054d764e
2 changed files with 6 additions and 2 deletions

View file

@ -48,7 +48,7 @@ diff -up mesa-20080331/src/mesa/drivers/dri/Makefile.jx mesa-20080331/src/mesa/d
-mkdir $(TOP)/$(LIB_DIR) -mkdir $(TOP)/$(LIB_DIR)
+libdricore.so: +libdricore.so:
+ ld -shared -o libdricore.so --whole-archive ../../libmesa.a --no-whole-archive -lm -lpthread -lc + gcc -shared -o libdricore.so -Wl,--whole-archive ../../libmesa.a -Wl,--no-whole-archive -lm -lpthread -lc
+ +
+$(TOP)/$(LIB_DIR)/libdricore.so: $(TOP)/$(LIB_DIR) libdricore.so +$(TOP)/$(LIB_DIR)/libdricore.so: $(TOP)/$(LIB_DIR) libdricore.so
+ $(INSTALL) libdricore.so $(TOP)/$(LIB_DIR) + $(INSTALL) libdricore.so $(TOP)/$(LIB_DIR)

View file

@ -15,7 +15,7 @@
Summary: Mesa graphics libraries Summary: Mesa graphics libraries
Name: mesa Name: mesa
Version: 7.1 Version: 7.1
Release: 0.33%{?dist} Release: 0.34%{?dist}
License: MIT License: MIT
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://www.mesa3d.org URL: http://www.mesa3d.org
@ -421,6 +421,10 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/mesa-demos-data %{_libdir}/mesa-demos-data
%changelog %changelog
* Wed Jun 04 2008 Adam Jackson <ajax@redhat.com> 7.1-0.34
- Link libdricore with gcc instead of ld, so we automagically pick up the
ld --build-id flags.
* Wed May 28 2008 Dave Airlie <airlied@redhat.com> 7.1-0.33 * Wed May 28 2008 Dave Airlie <airlied@redhat.com> 7.1-0.33
- Add initial r500 3D driver - Add initial r500 3D driver