freebsd-ports/audio/dap/files/patch-ag
Chris Piazza d07c240d19 Fix the use of BIGENDIAN where it should not have been
PR:		11935

Respect CC/CXX/CXXFLAGS/CFLAGS
1999-10-02 16:37:38 +00:00

27 lines
670 B
Plaintext

--- libaudiofile/Makefile.linux.orig Sun Jan 10 04:24:25 1999
+++ libaudiofile/Makefile.linux Sat Oct 2 09:25:01 1999
@@ -1,11 +1,11 @@
-CC = gcc
-CXX = g++
+CC ?= gcc
+CXX ?= g++
BACKDIR = ../bak/libaudiofile
HOMEDIR = $(HOME)
INCDIR = -I.
-CCFLAGS = $(INCDIR) $(DEBUG) $(OPTIM) -DLINUX -DBIGENDIAN -DUSINGGCC -Wall
+CCFLAGS = $(INCDIR) $(OPTIM) -DLINUX -DUSINGGCC -Wall
DEBUG = -g3
-OPTIM = -O1
+OPTIM = ${CXXFLAGS}
LIBNAME = libaudiofile.a
OBJS = audiofile.o ieee.o macros.o raw.o wav.o
@@ -21,6 +21,7 @@
libaudiofile.a: $(OBJS)
rm -f $(LIBNAME)
ar ruv $(LIBNAME) $(OBJS)
+ ranlib $(LIBNAME)
clean:
-rm -f $(OBJS) core