upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / libsonic / trunk / ldflags.patch
blobaf0e356c29a103841ad98132853a33ec2aebac9e
1 --- Makefile.orig 2015-02-27 21:17:45.000000000 +0300
2 +++ Makefile 2022-09-17 17:52:46.195305832 +0300
3 @@ -11,7 +11,7 @@
4 SONAME=install_name
5 endif
6 #CFLAGS=-Wall -g -ansi -fPIC -pthread
7 -CFLAGS=-Wall -O3 -ansi -fPIC -pthread
8 +CFLAGS+=-ansi -pthread
9 LIB_TAG=0.2.0
10 CC=gcc
11 PREFIX=/usr
12 @@ -20,7 +20,7 @@
13 all: sonic libsonic.so.$(LIB_TAG) libsonic.a
15 sonic: wave.o main.o libsonic.so.$(LIB_TAG)
16 - $(CC) $(CFLAGS) -o sonic wave.o main.o libsonic.so.$(LIB_TAG)
17 + $(CC) $(CFLAGS) $(LDFLAGS) -o sonic wave.o main.o libsonic.so.$(LIB_TAG)
19 sonic.o: sonic.c sonic.h
20 $(CC) $(CFLAGS) -c sonic.c
21 @@ -32,7 +32,7 @@
22 $(CC) $(CFLAGS) -c main.c
24 libsonic.so.$(LIB_TAG): sonic.o
25 - $(CC) $(CFLAGS) -shared -Wl,-$(SONAME),libsonic.so.0 sonic.o -o libsonic.so.$(LIB_TAG)
26 + $(CC) $(CFLAGS) -shared $(LDFLAGS),-$(SONAME),libsonic.so.0 sonic.o -o libsonic.so.$(LIB_TAG)
27 ln -sf libsonic.so.$(LIB_TAG) libsonic.so
28 ln -sf libsonic.so.$(LIB_TAG) libsonic.so.0