History

configure: pass CONFIG_xxxDIR/PATH options via commandline

- except for CONFIG_SYSROOT and CONFIG_TCCDIR Strictly neccessary it is only for CONFIG_MULTIARCHDIR because otherwise if it's in config.h it is impossible to leave it undefined. But it is also nicer not to use these definitions for cross-compilers. - Also: lib/Makefile : include ../Makefile for CFLAGS lib/libtcc1.c : fix an issue compiling tcc with tcc on x64

grischka committed 13 years ago

Commit 762a4381 parent 99b801d6 files · +30 −38Browse files

Showing the changes to lib (2 of 6 files). Show all

Unified · Split

2 files
  1. lib/Makefile +2 −2
  2. lib/libtcc1.c +6 −1
lib/Makefile+2−2
@@ -3,7 +3,7 @@ · 2 unmodified lines
3#3#
4 4
5TOP = ..5TOP = ..
6include $(TOP)/config.mak6include $(TOP)/Makefile
7VPATH = $(top_srcdir)/lib $(top_srcdir)/win32/lib7VPATH = $(top_srcdir)/lib $(top_srcdir)/win32/lib
8 8
9ifndef TARGET9ifndef TARGET
@@ -91,7 +91,7 @@ $(DIR)/%.o : %.c · 81 unmodified lines
91$(DIR)/%.o : %.S91$(DIR)/%.o : %.S
92 $(XCC) -c $< -o $@ $(XFLAGS)92 $(XCC) -c $< -o $@ $(XFLAGS)
93$(DIR)/%$(EXESUF) : $(TOP)/win32/tools/%.c93$(DIR)/%$(EXESUF) : $(TOP)/win32/tools/%.c
94 $(CC) -Os -s -o $@ $< $(XFLAGS) $(LDFLAGS)94 $(CC) -o $@ $< $(XFLAGS) $(LDFLAGS)
95 95
96$(OBJ) $(XAR) : $(DIR)/exists96$(OBJ) $(XAR) : $(DIR)/exists
97$(DIR)/exists :97$(DIR)/exists :
lib/libtcc1.c+6−1
@@ -609,8 +609,11 @@ unsigned long long __fixunsxfdi (long double a1) · 608 unmodified lines
609 609
610/* helper functions for stdarg.h */610/* helper functions for stdarg.h */
611 611
612#include <stdio.h>
613#include <stdlib.h>612#include <stdlib.h>
613#ifndef __TINYC__
614/* gives "incompatible types for redefinition of __va_arg" below */
615#include <stdio.h>
616#endif
614 617
615enum __va_arg_type {618enum __va_arg_type {
616 __va_gen_reg, __va_float_reg, __va_stack619 __va_gen_reg, __va_float_reg, __va_stack
@@ -665,7 +668,9 @@ void *__va_arg(struct __va_list_struct *ap, · 48 unmodified lines
665 return ap->overflow_arg_area - size;668 return ap->overflow_arg_area - size;
666 669
667 default:670 default:
671#ifndef __TINYC__
668 fprintf(stderr, "unknown ABI type for __va_arg\n");672 fprintf(stderr, "unknown ABI type for __va_arg\n");
673#endif
669 abort();674 abort();
670 }675 }
671}676}

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