diff options
| author | John Marino <marino@FreeBSD.org> | 2014-10-20 12:42:09 +0000 |
|---|---|---|
| committer | John Marino <marino@FreeBSD.org> | 2014-10-20 12:42:09 +0000 |
| commit | f19353cd33fd5656b884b234b0ecd1d452256379 (patch) | |
| tree | 6e0914b5eb9b4402aa214fa7a6e2e4c556b36d7b /net/osrtspproxy/files/patch-configure | |
| parent | net/nast: use -lpthread instead of -pthread, fix on DragonFly (diff) | |
net/osrtspproxy: use -lpthread instead of pthread, fix on DragonFly
Also enable passing of LDFLAGS but this functionality isn't needed atm.
Diffstat (limited to 'net/osrtspproxy/files/patch-configure')
| -rw-r--r-- | net/osrtspproxy/files/patch-configure | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/net/osrtspproxy/files/patch-configure b/net/osrtspproxy/files/patch-configure new file mode 100644 index 000000000000..34114d58156b --- /dev/null +++ b/net/osrtspproxy/files/patch-configure @@ -0,0 +1,46 @@ +--- configure.orig 2001-02-09 06:07:26 UTC ++++ configure +@@ -58,22 +58,8 @@ case "$UNAME_S" in + LDFLAGS="$LDDBG -L/usr/local/lib" + SYSLIBS="-lpthread" + ;; +- FreeBSD) +- case "$UNAME_R" in +- 2.*) +- OSVER=20 +- ;; +- 3.*) +- OSVER=30 +- ;; +- 4.*) +- OSVER=40 +- ;; +- *) +- # Assume 5.0 + +- OSVER=50 +- ;; +- esac ++ FreeBSD|DragonFly) ++ OSVER=50 + if [ "$DEBUG" -ne 0 ]; then + CCDBG="-g" + LDDBG="-g" +@@ -81,15 +67,12 @@ case "$UNAME_S" in + CCDBG="-DNDEBUG" + LDDBG="" + fi +- CC=gcc +- CFLAGS="$CCDBG -D_UNIX -D_BSD=$OSVER -Wall -I/usr/local/include" +- CXX=g++ ++ CFLAGS="$CCDBG -D_UNIX -D_BSD=$OSVER -Wall" + CXXFLAGS=${CFLAGS} + AR=ar + ARFLAGS="-rc" +- LD=gcc +- LDFLAGS="$LDDBG -pthread -L/usr/local/lib" +- SYSLIBS="" ++ LDFLAGS="$LDDBG" ++ SYSLIBS="-lpthread" + ;; + SunOS) + case "$UNAME_R" in |
