diff options
| author | bellard <bellard> | 2003-04-13 19:49:30 +0000 |
|---|---|---|
| committer | bellard <bellard> | 2003-04-13 19:49:30 +0000 |
| commit | 5647993e79e4dc8ab3e976e9817c48a20e2fa5eb (patch) | |
| tree | c7d2442d71af027e564533ab2980182809bd70d7 | |
| parent | d579dc4dbf85bd18f4609c44d0b3940bc51f7c8a (diff) | |
| download | tinycc-5647993e79e4dc8ab3e976e9817c48a20e2fa5eb.tar.gz tinycc-5647993e79e4dc8ab3e976e9817c48a20e2fa5eb.tar.bz2 | |
configure support
| -rw-r--r-- | tcc.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -18,6 +18,8 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define _GNU_SOURCE +#include "config.h" + #include <stdlib.h> #include <stdio.h> #include <stdarg.h> @@ -71,10 +73,6 @@ /* define it to include assembler support */ #define CONFIG_TCC_ASM -#ifndef CONFIG_TCC_PREFIX -#define CONFIG_TCC_PREFIX "/usr/local" -#endif - /* path to find crt1.o, crti.o and crtn.o. Only needed when generating executables or dlls */ #define CONFIG_TCC_CRT_PREFIX "/usr/lib" @@ -332,7 +330,9 @@ static int do_debug = 0; static int do_bounds_check = 0; /* display benchmark infos */ +#if !defined(LIBTCC) static int do_bench = 0; +#endif static int total_lines; static int total_bytes; @@ -350,7 +350,7 @@ static const char **rt_bound_error_msg; static struct TCCState *tcc_state; /* give the path of the tcc libraries */ -static const char *tcc_lib_path = CONFIG_TCC_PREFIX "/lib/tcc"; +static const char *tcc_lib_path = CONFIG_TCC_LIBDIR "/tcc"; struct TCCState { int output_type; @@ -9379,7 +9379,7 @@ static int64_t getclock_us(void) void help(void) { - printf("tcc version 0.9.16 - Tiny C Compiler - Copyright (C) 2001, 2002 Fabrice Bellard\n" + printf("tcc version " TCC_VERSION " - Tiny C Compiler - Copyright (C) 2001, 2002 Fabrice Bellard\n" "usage: tcc [-c] [-o outfile] [-Bdir] [-bench] [-Idir] [-Dsym[=val]] [-Usym]\n" " [-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-static]\n" " [--] infile1 [infile2... --] [infile_args...]\n" |
