History

configure support

bellard committed 23 years ago

Commit 56479931 parent d579dc41 file · +6 −6Browse files

Unified · Split

tcc.c+6−6
@@ -18,6 +18,8 @@ · 17 unmodified lines
1818 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1919 */
2020 #define _GNU_SOURCE
21+#include "config.h"
22+
2123 #include <stdlib.h>
2224 #include <stdio.h>
2325 #include <stdarg.h>
@@ -71,10 +73,6 @@ · 47 unmodified lines
7173 /* define it to include assembler support */
7274 #define CONFIG_TCC_ASM
7375
74−#ifndef CONFIG_TCC_PREFIX
75−#define CONFIG_TCC_PREFIX "/usr/local"
76−#endif
77−
7876 /* path to find crt1.o, crti.o and crtn.o. Only needed when generating
7977 executables or dlls */
8078 #define CONFIG_TCC_CRT_PREFIX "/usr/lib"
@@ -332,7 +330,9 @@ static int do_debug = 0; · 251 unmodified lines
332330 static int do_bounds_check = 0;
333331
334332 /* display benchmark infos */
333+#if !defined(LIBTCC)
335334 static int do_bench = 0;
335+#endif
336336 static int total_lines;
337337 static int total_bytes;
338338
@@ -350,7 +350,7 @@ static const char **rt_bound_error_msg; · 11 unmodified lines
350350 static struct TCCState *tcc_state;
351351
352352 /* give the path of the tcc libraries */
353−static const char *tcc_lib_path = CONFIG_TCC_PREFIX "/lib/tcc";
353+static const char *tcc_lib_path = CONFIG_TCC_LIBDIR "/tcc";
354354
355355 struct TCCState {
356356 int output_type;
@@ -9379,7 +9379,7 @@ static int64_t getclock_us(void) · 9022 unmodified lines
93799379
93809380 void help(void)
93819381 {
9382− printf("tcc version 0.9.16 - Tiny C Compiler - Copyright (C) 2001, 2002 Fabrice Bellard\n"
9382+ printf("tcc version " TCC_VERSION " - Tiny C Compiler - Copyright (C) 2001, 2002 Fabrice Bellard\n"
93839383 "usage: tcc [-c] [-o outfile] [-Bdir] [-bench] [-Idir] [-Dsym[=val]] [-Usym]\n"
93849384 " [-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-static]\n"
93859385 " [--] infile1 [infile2... --] [infile_args...]\n"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t