[llvm-commits] CVS: llvm/test/Programs/External/SPEC/CINT95/132.ijpeg/Makefile
John Criswell
criswell at cs.uiuc.edu
Tue Feb 10 15:14:02 PST 2004
Changes in directory llvm/test/Programs/External/SPEC/CINT95/132.ijpeg:
Makefile updated: 1.1 -> 1.2
---
Log message:
Added a macro definition that works around a shortcoming in the benchmark.
The benchmark uses "extern char * sys_errlist[]," but under Linux, that
variable is defined with __const qualifiers. This hack removes those
qualifiers and restores peace and order to the galaxy...
---
Diffs of the changes: (+4 -1)
Index: llvm/test/Programs/External/SPEC/CINT95/132.ijpeg/Makefile
diff -u llvm/test/Programs/External/SPEC/CINT95/132.ijpeg/Makefile:1.1 llvm/test/Programs/External/SPEC/CINT95/132.ijpeg/Makefile:1.2
--- llvm/test/Programs/External/SPEC/CINT95/132.ijpeg/Makefile:1.1 Tue Feb 10 13:45:56 2004
+++ llvm/test/Programs/External/SPEC/CINT95/132.ijpeg/Makefile Tue Feb 10 15:12:53 2004
@@ -1,7 +1,10 @@
LEVEL = ../../../../../..
STDIN_FILENAME := specmun.ppm
STDOUT_FILENAME := specmun.out
-CPPFLAGS += -DNO_SYSERRLIST
+
+# This line nukes the __const's found in /usr/include/stdio.h that prevent the
+# extern char * sys_errlist variable from linking properly.
+CPPFLAGS += -D__const=""
Source=libpbm1.c libpbm2.c libpbm3.c libpbm4.c libpbm5.c libpgm1.c libpgm2.c libppm1.c libppm2.c libppm3.c libppm4.c libppm5.c spec_image.c spec_jmemdst.c spec_jmemsrc.c spec_main.c rdppm.c wrppm.c rdgif.c wrgif.c rdtarga.c wrtarga.c rdbmp.c wrbmp.c jcapi.c jcparam.c jdatadst.c jcmaster.c jcmarker.c jcmainct.c jcprepct.c jccoefct.c jccolor.c jcsample.c jchuff.c jcdctmgr.c jfdctfst.c jfdctflt.c jfdctint.c jdapi.c jdatasrc.c jdmaster.c jdmarker.c jdmainct.c jdcoefct.c jdpostct.c jddctmgr.c jidctfst.c jidctflt.c jidctint.c jidctred.c jdhuff.c jdsample.c jdcolor.c jquant1.c jquant2.c jdmerge.c jcomapi.c jutils.c jerror.c jmemmgr.c jmemnobs.c
include ../../Makefile.spec95
More information about the llvm-commits
mailing list