summarylogtreecommitdiffstats
path: root/lib32_makefile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'lib32_makefile.patch')
-rw-r--r--lib32_makefile.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/lib32_makefile.patch b/lib32_makefile.patch
new file mode 100644
index 00000000000..4627669a670
--- /dev/null
+++ b/lib32_makefile.patch
@@ -0,0 +1,48 @@
+diff --git a/Makefile b/Makefile
+index 3b2aa7d..6c0531c 100644
+--- a/Makefile
++++ b/Makefile
+@@ -4,10 +4,10 @@ Q ?= @
+ #Q ?=
+
+ # Build Tools
+-CC := gcc
++CC := gcc -m32
+ CFLAGS := -I. -O2 -Wall -funroll-loops -ffast-math -fPIC -DPIC
+-LD := gcc
+-LDFLAGS := -O2 -Wall -shared -lasound
++LD := gcc -m32
++LDFLAGS := -O2 -Wall -shared -lasound -L/usr/lib32
+
+ SND_PCM_OBJECTS = pcm_equal.o ladspa_utils.o
+ SND_PCM_LIBS =
+@@ -29,11 +29,11 @@ dep:
+
+ $(SND_PCM_BIN): $(SND_PCM_OBJECTS)
+ @echo LD $@
+- $(Q)$(LD) $(LDFLAGS) $(SND_PCM_LIBS) $(SND_PCM_OBJECTS) -o $(SND_PCM_BIN)
++ $(Q)$(LD) $(LDFLAGS) $(SND_PCM_OBJECTS) -o $(SND_PCM_BIN) $(SND_PCM_LIBS)
+
+ $(SND_CTL_BIN): $(SND_CTL_OBJECTS)
+ @echo LD $@
+- $(Q)$(LD) $(LDFLAGS) $(SND_CTL_LIBS) $(SND_CTL_OBJECTS) -o $(SND_CTL_BIN)
++ $(Q)$(LD) $(LDFLAGS) $(SND_CTL_OBJECTS) -o $(SND_CTL_BIN) $(SND_CTL_LIBS)
+
+ %.o: %.c
+ @echo GCC $<
+@@ -45,11 +45,10 @@ clean:
+
+ install: all
+ @echo Installing...
+- $(Q)install -m 644 $(SND_PCM_BIN) ${DESTDIR}/usr/lib/alsa-lib/
+- $(Q)install -m 644 $(SND_CTL_BIN) ${DESTDIR}/usr/lib/alsa-lib/
++ $(Q)install -m 755 $(SND_PCM_BIN) ${DESTDIR}/usr/lib32/alsa-lib/
++ $(Q)install -m 755 $(SND_CTL_BIN) ${DESTDIR}/usr/lib32/alsa-lib/
+
+ uninstall:
+ @echo Un-installing...
+- $(Q)rm ${DESTDIR}/usr/lib/alsa-lib/$(SND_PCM_BIN)
+- $(Q)rm ${DESTDIR}/usr/lib/alsa-lib/$(SND_CTL_BIN)
+-
++ $(Q)rm ${DESTDIR}/usr/lib32/alsa-lib/$(SND_PCM_BIN)
++ $(Q)rm ${DESTDIR}/usr/lib32/alsa-lib/$(SND_CTL_BIN)