Skip to content

Commit

Permalink
Merge pull request #112 from mtourne/master
Browse files Browse the repository at this point in the history
Making dynamic library build on mac os
  • Loading branch information
client9 committed May 21, 2017
2 parents 7d3567f + b543fcc commit 9cb0e59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Makefile
Expand Up @@ -5,7 +5,6 @@ AR=ar -r

CC=cc
LD=ld
LDSHARED=ld -shared
CFLAGS=-Wall -Wextra -Werror -pedantic -ansi -g -O3 -fPIC

INSTALL=install
Expand Down Expand Up @@ -64,7 +63,7 @@ libinjection_html5.o: libinjection.h libinjection_html5.c libinjection_html5.h
${CC} ${CFLAGS} -c -o libinjection_html5.o libinjection_html5.c

${SHAREDLIB}: ${OBJECTS}
${LD} -shared -o ${SHAREDLIB} ${OBJECTS} -lc
$(CC) $+ -shared -lc -o $@

${STATICLIB}: ${OBJECTS}
rm -f ${STATICLIB}
Expand Down

0 comments on commit 9cb0e59

Please sign in to comment.