* [Buildroot] [PATCH] sdl_mixer: fix static linking issue
@ 2016-12-07 19:09 Waldemar Brodkorb
2016-12-07 22:40 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Waldemar Brodkorb @ 2016-12-07 19:09 UTC (permalink / raw)
To: buildroot
LDFLAGS must be passed when creating binaries.
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
while testing the berkeley db fix, this error occured afterwards, so
no autobuilder reference.
---
.../sdl_mixer/0002-add-LDFLAGS-while-linking.patch | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 package/sdl_mixer/0002-add-LDFLAGS-while-linking.patch
diff --git a/package/sdl_mixer/0002-add-LDFLAGS-while-linking.patch b/package/sdl_mixer/0002-add-LDFLAGS-while-linking.patch
new file mode 100644
index 0000000..5c55a48
--- /dev/null
+++ b/package/sdl_mixer/0002-add-LDFLAGS-while-linking.patch
@@ -0,0 +1,20 @@
+Pass LDFLAGS while creating binaries.
+
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+
+diff -Nur SDL_mixer-1.2.12.orig/Makefile.in SDL_mixer-1.2.12/Makefile.in
+--- SDL_mixer-1.2.12.orig/Makefile.in 2012-01-15 23:01:04.000000000 +0100
++++ SDL_mixer-1.2.12/Makefile.in 2016-12-07 08:29:22.479786596 +0100
+@@ -66,10 +66,10 @@
+ $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
+
+ $(objects)/playwave$(EXE): $(objects)/playwave.lo $(objects)/$(TARGET)
+- $(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playwave.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET)
++ $(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playwave.lo $(SDL_CFLAGS) $(SDL_LIBS) $(LDFLAGS) $(objects)/$(TARGET)
+
+ $(objects)/playmus$(EXE): $(objects)/playmus.lo $(objects)/$(TARGET)
+- $(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playmus.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET)
++ $(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playmus.lo $(SDL_CFLAGS) $(SDL_LIBS) $(LDFLAGS) $(objects)/$(TARGET)
+
+ install: all install-hdrs install-lib #install-bin
+ install-hdrs:
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] sdl_mixer: fix static linking issue
2016-12-07 19:09 [Buildroot] [PATCH] sdl_mixer: fix static linking issue Waldemar Brodkorb
@ 2016-12-07 22:40 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-12-07 22:40 UTC (permalink / raw)
To: buildroot
Hello,
On Wed, 7 Dec 2016 20:09:00 +0100, Waldemar Brodkorb wrote:
> LDFLAGS must be passed when creating binaries.
>
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
> ---
> while testing the berkeley db fix, this error occured afterwards, so
> no autobuilder reference.
Sounds good...
> ---
> .../sdl_mixer/0002-add-LDFLAGS-while-linking.patch | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
> create mode 100644 package/sdl_mixer/0002-add-LDFLAGS-while-linking.patch
>
> diff --git a/package/sdl_mixer/0002-add-LDFLAGS-while-linking.patch b/package/sdl_mixer/0002-add-LDFLAGS-while-linking.patch
> new file mode 100644
> index 0000000..5c55a48
> --- /dev/null
> +++ b/package/sdl_mixer/0002-add-LDFLAGS-while-linking.patch
> @@ -0,0 +1,20 @@
> +Pass LDFLAGS while creating binaries.
... but please add more details here about *why* we're doing this.
> +
> +Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-07 22:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-07 19:09 [Buildroot] [PATCH] sdl_mixer: fix static linking issue Waldemar Brodkorb
2016-12-07 22:40 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox