Skip to content

Commit

Permalink
add -I to TCC/TCCFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
GuiQuanZ committed Feb 17, 2016
1 parent 8a08a2d commit 644a707
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ else
ifeq "$(TARGET)" "x86_64"
OBJ = $(addprefix $(DIR)/,$(X86_64_O))
TGT = -DTCC_TARGET_X86_64
XCC ?= $(TCC) -B$(TOP)
XCC ?= $(TCC) -B$(TOP) -I$(includedir)
else
$(error libtcc1.a not supported on target '$(TARGET)')
endif
Expand Down
2 changes: 1 addition & 1 deletion lib/libtcc1.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ unsigned long long __fixunsxfdi (long double a1)

/* helper functions for stdarg.h */

//#include <stdlib.h>
#include <stdlib.h>
#ifndef __TINYC__
/* gives "incompatible types for redefinition of __va_arg" below */
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ifeq ($(TARGETOS),Darwin)
endif

# run local version of tcc with local libraries and includes
TCCFLAGS = -B$(TOP)
TCCFLAGS = -B$(TOP) -I$(includedir)
ifdef CONFIG_WIN32
TCCFLAGS = -B$(top_srcdir)/win32 -I$(top_srcdir)/include -L$(TOP)
endif
Expand Down
2 changes: 1 addition & 1 deletion tests/tests2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ TOP = ../..
include $(TOP)/Makefile
VPATH = $(top_srcdir)/tests/tests2

TCCFLAGS = -B$(TOP)
TCCFLAGS = -B$(TOP) -I$(includedir)
ifdef CONFIG_WIN32
TCCFLAGS = -B$(top_srcdir)/win32 -I$(top_srcdir)/include -L$(TOP)
endif
Expand Down

0 comments on commit 644a707

Please sign in to comment.