File gargoyle.dif of Package gargoyle
--- Jamrules
+++ Jamrules
@@ -82,7 +82,7 @@
case RELEASE :
Echo "BUILD is RELEASE" ;
- OPTIM = -O2 ;
+ OPTIM = -O2 $(RPM_OPT_FLAGS) -fPIC ;
case PROFILE :
Echo "BUILD is PROFILE" ;
--- garglk/cgfref.c
+++ garglk/cgfref.c
@@ -290,7 +290,8 @@
strcpy(gli_workdir, filename);
if (strrchr(gli_workdir, '/'))
strrchr(gli_workdir, '/')[1] = 0;
- if (strrchr(gli_workdir, '\\'))
+ else if (strrchr(gli_workdir, '\\'))
strrchr(gli_workdir, '\\')[1] = 0;
+ else strcpy(gli_workdir, "./");
}
--- tads/Jamfile
+++ tads/Jamfile
@@ -17,7 +17,7 @@
-DVMGLOB_STRUCT
;
-OPTIM = -O ; # tads 3 fails to compile with opts
+OPTIM = $(RPM_OPT_FLAGS) -fPIC -O ; # tads 3 fails to compile with opts
if $(OS) = LINUX
{
--- terps/level9/level9.h
+++ terps/level9/level9.h
@@ -25,7 +25,7 @@
typedef unsigned char L9BYTE;
typedef unsigned short L9UINT16;
-typedef unsigned long L9UINT32;
+typedef unsigned int L9UINT32;
typedef int L9BOOL;
#ifndef FALSE