Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] "libdir" variable is not set correctly in (generated) $(STAGING_DIR)/usr/lib/libSDL.la
@ 2010-01-27 14:54 julien.boibessot at free.fr
  2010-01-27 14:59 ` Lionel Landwerlin
  0 siblings, 1 reply; 3+ messages in thread
From: julien.boibessot at free.fr @ 2010-01-27 14:54 UTC (permalink / raw)
  To: buildroot

From: Julien Boibessot <julien.boibessot@armadeus.com>

"libdir" is set to "/xxx/output/build/staging_dir/usr/xxx/output/build/staging_dir/usr/lib"
instead of "/xxx/output/build/staging_dir/usr/lib". This prevents other apps to link against SDL.
This patch try to correct/workaround that (is it the best way to do it ?).

Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com>
---
 package/sdl/sdl.mk |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/package/sdl/sdl.mk b/package/sdl/sdl.mk
index 959be7e..60eccaa 100644
--- a/package/sdl/sdl.mk
+++ b/package/sdl/sdl.mk
@@ -97,6 +97,9 @@ $(STAGING_DIR)/usr/lib/libSDL.so: $(SDL_DIR)/.compiled
 # use correct rpath for linking
 	$(SED) 's^libdir=\$${exec_prefix}^libdir=/usr^' \
 		$(STAGING_DIR)/usr/bin/sdl-config
+# set correct libdir path in libSDL.la
+	$(SED) "s^libdir='$(STAGING_DIR)/usr^libdir='^" \
+		$(STAGING_DIR)/usr/lib/libSDL.la
 	touch -c $@
 
 $(TARGET_DIR)/usr/lib/libSDL.so: $(STAGING_DIR)/usr/lib/libSDL.so
-- 
1.6.0.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-27 15:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-27 14:54 [Buildroot] [PATCH] "libdir" variable is not set correctly in (generated) $(STAGING_DIR)/usr/lib/libSDL.la julien.boibessot at free.fr
2010-01-27 14:59 ` Lionel Landwerlin
2010-01-27 15:35   ` Julien Boibessot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox