aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBruno Morais <brunosmmm@gmail.com>2020-02-22 15:23:59 -0500
committerBruno Morais <brunosmmm@gmail.com>2020-02-22 15:23:59 -0500
commit650c11ca17ee437a22aefe4fd256aba736a3c1c8 (patch)
tree1b083fbb8c526caa9c5f79e1ff8461484d28cb45 /examples
parent5389c1f796ea153232a582bd28e73be43638a124 (diff)
Fix cross-compilation
Cross-compilation failing due to make library resolution.
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/Makefile b/examples/Makefile
index c52d367..650966d 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -11,9 +11,11 @@ EXAMPLES += pcm-writei
.PHONY: all
all: $(EXAMPLES)
-pcm-readi: pcm-readi.c -ltinyalsa -ldl
+pcm-readi pcm-writei: LDLIBS+=-ldl
-pcm-writei: pcm-writei.c -ltinyalsa -ldl
+pcm-readi: pcm-readi.c -ltinyalsa
+
+pcm-writei: pcm-writei.c -ltinyalsa
.PHONY: clean
clean: