1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/math/tomsfastmath/files/patch-makefile
Alexey Dokuchaev 63e4744348 Remove USE_GCC and fix the broken code instead. While gcc accepts %cc and
%memory, the syntax is wrong, since % is only used for registers.  Clang
currently rejects those constructs [1].  Similar fix was applied to NSS by
Mozilla team before [2].

While here: remove BROKEN for ia64/sparc64 where it builds (for powerpc use
BROKEN_powerpc), allow staging as regular user, GC stray MASTER_SITE_SUBDIR.

[1] http://llvm.org/bugs/show_bug.cgi?id=10365
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=671711
2014-06-09 04:25:02 +00:00

41 lines
1.0 KiB
Plaintext

--- makefile.orig Wed Apr 12 13:16:32 2006
+++ makefile Wed Apr 12 13:16:48 2006
@@ -11,7 +11,7 @@ endif
ifndef IGNORE_SPEED
-CFLAGS += -O3 -funroll-loops
+CFLAGS += -funroll-loops
#profiling
#PROF=-pg -g
@@ -52,11 +52,11 @@ HEADERS=src/headers/tfm.h
#END_INS
ifndef LIBPATH
- LIBPATH=/usr/lib
+ LIBPATH=${PREFIX}/lib
endif
ifndef INCPATH
- INCPATH=/usr/include
+ INCPATH=${PREFIX}/include
endif
ifndef INSTALL_GROUP
@@ -82,10 +82,10 @@ $(LIBNAME): $(OBJECTS)
ranlib $@
install: $(LIBNAME)
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
- install -g $(GROUP) -o $(USER) $(LIBNAME) $(DESTDIR)$(LIBPATH)
- install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
+ install -d $(DESTDIR)$(LIBPATH)
+ install -d $(DESTDIR)$(INCPATH)
+ install -m 644 $(LIBNAME) $(DESTDIR)$(LIBPATH)
+ install -m 644 $(HEADERS) $(DESTDIR)$(INCPATH)
mtest/mtest: mtest/mtest.o
cd mtest ; CFLAGS="$(CFLAGS) -I../" MAKE=${MAKE} ${MAKE} mtest