Files
packages/anda/lib/xavs/xavs-cflags.patch
T
2025-02-14 00:18:50 +08:00

52 lines
1.8 KiB
Diff

diff -Naur xavs-code-r55-trunk.old/configure xavs-code-r55-trunk/configure
--- xavs-code-r55-trunk.old/configure 2024-08-13 14:58:40.981179321 +0200
+++ xavs-code-r55-trunk/configure 2024-08-13 15:08:52.935514480 +0200
@@ -404,14 +404,13 @@
fi
if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then
- CFLAGS="$CFLAGS -s -fomit-frame-pointer"
- LDFLAGS="$LDFLAGS -s"
+ CFLAGS="$CFLAGS -fomit-frame-pointer"
fi
if [ "$debug" = "yes" ]; then
- CFLAGS="-O1 -g $CFLAGS"
+ CFLAGS="-g $CFLAGS"
else
- CFLAGS="-O4 -ffast-math $CFLAGS"
+ CFLAGS="-ffast-math $CFLAGS"
fi
if cc_check "stdio.h" "" "fseeko(stdin,0,0);" ; then
diff -Naur xavs-code-r55-trunk.old/Makefile xavs-code-r55-trunk/Makefile
--- xavs-code-r55-trunk.old/Makefile 2024-08-13 14:58:40.981179321 +0200
+++ xavs-code-r55-trunk/Makefile 2024-08-13 15:23:58.864416440 +0200
@@ -67,10 +67,12 @@
$(RANLIB) libxavs.a
$(SONAME): .depend $(OBJS) $(OBJASM)
- $(CC) -shared -o $@ $(OBJS) $(OBJASM) -Wl,-soname,$(SOFLAGS) $(LDFLAGS)
+ $(CC) -shared -o $@.0.0 $(OBJS) $(OBJASM) -Wl,-soname,$(SOFLAGS) $(LDFLAGS)
+ ln -s $@.0.0 $@
+ ln -s $@ libxavs.so
-xavs$(EXE): $(OBJCLI) libxavs.a
- $(CC) -o $@ $+ $(LDFLAGS)
+xavs$(EXE): $(OBJCLI) libxavs.a $(SONAME)
+ $(CC) -o $@ $(OBJCLI) $(LDFLAGS) -L. -lxavs
xavsvfw.dll: libxavs.a $(wildcard vfw/*.c vfw/*.h)
make -C vfw/build/cygwin
@@ -145,8 +147,9 @@
ifeq ($(SYS),MINGW)
$(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(bindir))
else
+ $(if $(SONAME), install -m 755 $(SONAME).0.0 $(DESTDIR)$(libdir))
+ $(if $(SONAME), ln -sf $(SONAME).0.0 $(DESTDIR)$(libdir)/$(SONAME))
$(if $(SONAME), ln -sf $(SONAME) $(DESTDIR)$(libdir)/libxavs.$(SOSUFFIX))
- $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(libdir))
endif
$(if $(IMPLIBNAME), install -m 644 $(IMPLIBNAME) $(DESTDIR)$(libdir))