blob: 6cf215f946f553cd1a38ca0ff9d2a80fbc35adb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
diff -ur NPRQuake-SDL-orig/Makefile NPRQuake-SDL/Makefile
--- NPRQuake-SDL-orig/Makefile 2003-07-16 23:58:48.000000000 -0400
+++ NPRQuake-SDL/Makefile 2003-07-16 23:58:59.000000000 -0400
@@ -1,4 +1,4 @@
-RELEASE_CFLAGS=-Dstricmp=strcasecmp -mcpu=i586 -march=i586 -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations
+RELEASE_CFLAGS=-Dstricmp=strcasecmp GENTOO_CFLAGS -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations
DEBUG_CFLAGS=-Dstricmp=strcasecmp -g
diff -ur NPRQuake-SDL-orig/NPRQuakeSrc/Makefile NPRQuake-SDL/NPRQuakeSrc/Makefile
--- NPRQuake-SDL-orig/NPRQuakeSrc/Makefile 2003-07-16 23:58:48.000000000 -0400
+++ NPRQuake-SDL/NPRQuakeSrc/Makefile 2003-07-16 23:59:38.000000000 -0400
@@ -29,7 +29,7 @@
CC=gcc
-RELEASE_CFLAGS=$(BASE_CFLAGS) -mcpu=i586 -march=i586 -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations
+RELEASE_CFLAGS=$(BASE_CFLAGS) GENTOO_CFLAGS -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations
DEBUG_CFLAGS=$(BASE_CFLAGS) -g
LDFLAGS=-lm
CFLAGS=$(RELEASE_CFLAGS)
diff -ur NPRQuake-SDL-orig/NPRQuakeSrc/gl_rmisc.c NPRQuake-SDL/NPRQuakeSrc/gl_rmisc.c
--- NPRQuake-SDL-orig/NPRQuakeSrc/gl_rmisc.c 2003-07-16 23:58:49.000000000 -0400
+++ NPRQuake-SDL/NPRQuakeSrc/gl_rmisc.c 2003-07-17 00:00:39.000000000 -0400
@@ -563,13 +563,15 @@
// this should be as big as the number of functions we pull out.
void * tf[25];
+ char * libz0r[1024];
memset( tf, 0, sizeof( void * ) * 25 );
#ifdef _WIN32 //JG
hnewlib = LoadLibrary( lib );
#else
- hnewlib = dlopen( lib, RTLD_LAZY | RTLD_GLOBAL );
+ sprintf(libz0r, GENTOO_LIBDIR "/%s", lib);
+ hnewlib = dlopen( libz0r, RTLD_LAZY | RTLD_GLOBAL );
#endif
if( hnewlib == NULL ) {
Only in NPRQuake-SDL/NPRQuakeSrc: gl_rmisc.c.orig
|