1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Add support for sparc64 [1]

- use LDFLAGS instead of -lm

Submitted by:	kwm via irc [1]
This commit is contained in:
Michael Johnson 2005-04-22 14:18:03 +00:00
parent e1c43ee97b
commit 4f46ec8738
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133939
4 changed files with 28 additions and 6 deletions

View File

@ -38,7 +38,7 @@
+ $(CC) -o $@ x264.o $(SHARED_LIB_VER) $(LDFLAGS)
+
+$(SHARED_LIB_VER): $(OBJS) libx264.a
+ $(CC) $(CFLAGS) -shared -Wl,-soname,$(SHARED_LIB_VER) -o $(SHARED_LIB_VER) $(OBJS) $(OBJASM) -lm
+ $(CC) $(CFLAGS) -shared -Wl,-soname,$(SHARED_LIB_VER) -o $(SHARED_LIB_VER) $(OBJS) $(OBJASM) $(LDFLAGS)
x264vfw.dll: libx264.a $(wildcard vfw/*.c vfw/*.h)
make -C vfw/build/cygwin

View File

@ -1,5 +1,5 @@
--- configure.orig Thu Apr 21 08:03:47 2005
+++ configure Thu Apr 21 08:08:16 2005
--- configure.orig Thu Apr 21 11:04:21 2005
+++ configure Fri Apr 22 16:01:23 2005
@@ -22,8 +22,8 @@
debug="no"
vfw="no"
@ -20,3 +20,14 @@
ARCH="X86_64"
CFLAGS="$CFLAGS -DHAVE_MMXEXT -DHAVE_SSE2"
AS="yasm"
@@ -89,6 +89,10 @@
else
CFLAGS="$CFLAGS -maltivec -mabi=altivec"
fi
+ ;;
+ "Sparc64" | sparc64)
+ ARCH="SPARC64"
+ CFLAGS="$CFLAGS"
;;
*)
echo "Unknown platform $UNAMEM, edit the configure"

View File

@ -38,7 +38,7 @@
+ $(CC) -o $@ x264.o $(SHARED_LIB_VER) $(LDFLAGS)
+
+$(SHARED_LIB_VER): $(OBJS) libx264.a
+ $(CC) $(CFLAGS) -shared -Wl,-soname,$(SHARED_LIB_VER) -o $(SHARED_LIB_VER) $(OBJS) $(OBJASM) -lm
+ $(CC) $(CFLAGS) -shared -Wl,-soname,$(SHARED_LIB_VER) -o $(SHARED_LIB_VER) $(OBJS) $(OBJASM) $(LDFLAGS)
x264vfw.dll: libx264.a $(wildcard vfw/*.c vfw/*.h)
make -C vfw/build/cygwin

View File

@ -1,5 +1,5 @@
--- configure.orig Thu Apr 21 08:03:47 2005
+++ configure Thu Apr 21 08:08:16 2005
--- configure.orig Thu Apr 21 11:04:21 2005
+++ configure Fri Apr 22 16:01:23 2005
@@ -22,8 +22,8 @@
debug="no"
vfw="no"
@ -20,3 +20,14 @@
ARCH="X86_64"
CFLAGS="$CFLAGS -DHAVE_MMXEXT -DHAVE_SSE2"
AS="yasm"
@@ -89,6 +89,10 @@
else
CFLAGS="$CFLAGS -maltivec -mabi=altivec"
fi
+ ;;
+ "Sparc64" | sparc64)
+ ARCH="SPARC64"
+ CFLAGS="$CFLAGS"
;;
*)
echo "Unknown platform $UNAMEM, edit the configure"