/[smecontribs]/rpms/alac/contribs9/libalac-makefile.patch
ViewVC logotype

Contents of /rpms/alac/contribs9/libalac-makefile.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sun Apr 26 02:21:57 2020 UTC (4 years, 7 months ago) by jpp
Branch: MAIN
CVS Tags: alac-0_0+git_20160511-151_2_4_1_el6_sme, alac-0_0+git_20160511-lp151_2_4, HEAD
Error occurred while calculating annotation data.
Initial import

1 Index: codec/makefile
2 ===================================================================
3 --- codec/makefile.orig
4 +++ codec/makefile
5 @@ -1,6 +1,10 @@
6 # libalac make
7
8 -CFLAGS = -g -O3 -c
9 +VERSION = 0.3
10 +SONAME = 0
11 +
12 +OPTFLAGS = -g -O3
13 +CFLAGS = $(OPTFLAGS) -fPIC -c
14 LFLAGS = -Wall
15 CC = g++
16
17 @@ -42,9 +46,16 @@ dp_enc.o \
18 matrix_dec.o \
19 matrix_enc.o
20
21 +all: libalac.a libalac.so.$(VERSION)
22 +
23 libalac.a: $(OBJS)
24 ar rcs libalac.a $(OBJS)
25
26 +libalac.so.$(VERSION): $(OBJS)
27 + $(CC) $(OPTFLAGS) -shared -Wl,-soname,libalac.so.$(SONAME) -o libalac.so.$(VERSION) $(OBJS)
28 + ln -s libalac.so.$(VERSION) libalac.so.$(SONAME)
29 + ln -s libalac.so.$(SONAME) libalac.so
30 +
31 EndianPortable.o : EndianPortable.c
32 $(CC) -I $(INCLUDES) $(CFLAGS) EndianPortable.c
33
34 Index: convert-utility/makefile
35 ===================================================================
36 --- convert-utility/makefile.orig
37 +++ convert-utility/makefile
38 @@ -1,6 +1,7 @@
39 # alacconvert make
40
41 -CFLAGS = -g -O3 -c
42 +OPTFLAGS = -g -O3
43 +CFLAGS = $(OPTFLAGS) -fPIC -c
44 LFLAGS = -Wall -L$(CODECDIR) -lalac
45 CC = g++
46
47 @@ -30,7 +31,7 @@ CAFFileALAC.o
48
49 alacconvert: $(OBJS)
50 (cd $(CODECDIR); $(MAKE))
51 - $(CC) $(LFLAGS) $(OBJS) -o alacconvert
52 + $(CC) $(OBJS) -o alacconvert $(LFLAGS)
53
54 main.o : main.cpp
55 $(CC) -I $(INCLUDES) $(CFLAGS) main.cpp

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed