aboutsummaryrefslogtreecommitdiff
path: root/configure
Commit message (Collapse)AuthorAgeFilesLines
...
* configure: pass CONFIG_xxxDIR/PATH options via commandlinegrischka2013-02-141-32/+16
| | | | | | | | | | | | | | | - 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
* Add missing heading slash to detect /lib64 systemsThomas Preud'homme2013-02-141-1/+1
|
* Another attempt to "detect" multiarchThomas Preud'homme2013-02-141-8/+14
|
* configure: cleanupgrischka2013-02-141-169/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add quotes: eval opt=\"$opt\" - use $source_path/conftest.c for OOT build - add fn_makelink() for OOT build - do not check lddir etc. on Windows/MSYS - formatting config-print.c - rename to conftest.c (for consistency) - change option e to b - change output from that from "yes" to "no" - remove inttypes.h dependency - simpify version output Makefile: - improve GCC warning flag checks tcc.h: - add back default CONFIG_LDDIR - add default CONFIG_TCCDIR also (just for fun) tccpp.c: - fix Christian's last warning tccpp.c: In function ‘macro_subst’: tccpp.c:2803:12: warning: ‘*((void *)&cval+4)’ is used uninitialized in this function [-Wuninitialized] That the change fixes the warning doesn't make sense but anyway. libtcc.c: - tcc_error/warning: print correct source filename/line for token :paste: (also inline :asm:) lddir and multiarch logic still needs fixing.
* Create config-print program to test $ccThomas Preud'homme2013-02-131-46/+6
| | | | | | Create a helper program called config-print to print informations relative to the BUILD/HOST environment in the case of native compilation.
* Various fixes for f9ac2013Thomas Preud'homme2013-02-131-7/+3
|
* Detect multiarch triplet and lddir from ldd outputThomas Preud'homme2013-02-131-8/+8
|
* Fix previous commitThomas Preud'homme2013-02-131-1/+1
| | | | Fix commit f6cfaa6d2591b8931f8fde9aebf7822202b78810
* Improve multiarch detectionThomas Preud'homme2013-02-131-0/+16
| | | | | | * Detect multiarch at configure time * Detect based on the place where crti.o is * Define multiarch triplet in tcc.h
* Fix fn_dirname in configure scriptThomas Preud'homme2013-02-081-1/+1
| | | | | Use ${parameter%word} construct to fix fn_dirname in configure script. Bonus: on less fork.
* tests: cleanupgrischka2013-02-051-1/+1
| | | | | | | | | | | | | | | | tests: - add "hello" to test first basic compilation to file/memory - add "more" test (tests2 suite) - remove some tests tests2: - move into tests dir - Convert some files from DOS to unix LF - remove 2>&1 redirection win32: - tccrun.c: modify exception filter to exit correctly (needed for btest) - tcctest.c: exclude weak_test() (feature does not exist on win32)
* configure: use relative paths for in-tree buildgrischka2013-01-301-14/+15
| | | | | | Also - move CPPFLAGS to Makefile - Use top_srcdir in lib/Makefile
* Fix out-of-tree build with relative path to rootThomas Preud'homme2013-01-141-2/+2
| | | | | Fix path of Makefile symlinks in a out-of-tree build where the root directory of the source is given as a relative path.
* configure: support absolete out-of-tree buildsAkim Demaille2012-12-211-3/+8
| | | | | configure: handle the case of absolute paths. Reported by grishka.
* configure: style changesAkim Demaille2012-12-211-11/+13
| | | | * configure: use more here-documents.
* configure: prefer here-documentsAkim Demaille2012-12-211-53/+53
| | | | | * configure: use here-documents to improve readability and reduce the clutter.
* configure: style changesAkim Demaille2012-12-211-13/+7
| | | | | * configure (case $targetos): Improve readibility. (case $cpu): New, to improve readability compare to if + test.
* build: fix VPATH buildsAkim Demaille2012-12-181-11/+29
| | | | | | | | | | * configure (fn_dirname): New. Use it to ensure the creation of proper symlinks to Makefiles. (config.mak): Define top_builddir and top_srcdir. (CPPFLAGS): Be sure to find the headers. * Makefile, lib/Makefile, tests/Makefile, tests2/Makefile: Adjust to set VPATH properly. Fix confusion between top_builddir and top_srcdir.
* Detect ARM CPU version in configureThomas Preud'homme2012-12-041-1/+16
| | | | | Instead of guessing the ARM CPU version to compile for from tcc.h, we now detect it in configure and output the value in config.h
* Add armv6l to ARM supported processorsThomas Preud'homme2012-11-111-1/+1
| | | | | Add armv6l to the list of supported ARM architecture (as returned by uname -m) in ./configure
* Evaluate configure argumentsThomas Preud'homme2012-06-121-0/+1
| | | | | | Evaluate configure arguments to reproduce autotools behavior. Autotools actually only expands a few variable and do it at make time but it makes the change much simpler.
* Only warn for unknown options in configure scriptThomas Preud'homme2012-05-281-1/+1
| | | | | This follows discussion started at http://lists.nongnu.org/archive/html/tinycc-devel/2012-05/msg00015.html
* Revert "Multiple fixes for 64 bit sections"Andrew Mulbrook2012-03-031-9/+3
| | | | This reverts commit d7a7c3769d0a1dcb8400258cd8adf78a8566de61.
* Multiple fixes for 64 bit sectionsmob2012-02-261-3/+9
| | | | | | | | | | | | | | | This changeset attempts to fix a few problems when giving using the high 32bits of a 64bit section offset. There are likely more issues (or perhaps regressions) lurking in the muck here. In general, this moves a few data type declarations to use uplong. Also, add support for 64bit mingw32 building under cygwin. Because native types are used for 64 bit offsets, this won't fix challenges with cross compiling from 32bit -> 64bit. Tested under cygwin, against binary compiled with -Wl,-Ttext=0xffffff8000000000 Signed-off-by: Andrew Mulbrook <andrew262@gmail.com>
* Patch attempting to build OSX TinyCC.Milutin Jovanovic2012-02-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Applied patch found on stackoverflow (link below). I also found some related changes that looked like logically needed. The stackoverflow changes addressed only two registers which were breaking a compile. However reading the code in the same file shows two other register accesses that, while not breaking the build, should have the same fix. http://stackoverflow.com/questions/3712902/problems-compiling-tcc-on-os-x/3713144#3713144 The test driver was changed by changing 'cp -u' into 'cp' as '-u' is not supported on mac osx. I found that osx build required the WITHOUT_LIBTCC define. I suspect the reason for this is tcc unability to handle mach-o files. In order to properly address this I had to change 'configure' to propagate target os name to Makefile. Current state is that simple tests work, but not the whole 'make test' suite runs. To the best of my knowledge, these changes should not impact other platforms.
* libtcc: minor adjustmentsgrischka2011-08-111-1/+3
| | | | | | | | | | | | | | | | | - use {B} to substitute tcc_lih_path (instead of \b) - expand CONFIG_TCC_CRTPREFIX in CONFIG_TCC_LIBPATHS which fixes duplicate CONFIG_SYSROOT. - put default CONFIG_SYSROOT ("") into tcc.h - remove hack from commit db6fcce78f4d8ea25036dd6643e9fa83d8e52e5a because $(tccdir)/include is already in sysincludes - configure: error out for unrecognized options. - win32/build-tcc.bat: put libtcc into base dir where it will find lib/include automatically, and build libtcc_test example.
* libtcc: support more than one crtprefixgrischka2011-08-061-1/+1
| | | | Looks like gcc has that. Oh Deer!
* configure: add switches to set search pathsgrischka2011-08-061-6/+35
| | | | | | | | | | | | | | | | | | | --sysincludepaths=.. specify system include paths, colon separated" Sets CONFIG_TCC_SYSINCLUDEPATHS --libpaths=... specify system library paths, colon separated" Sets CONFIG_TCC_LIBPATHS --crtprefix=... specify location of crt?.o" Sets CONFIG_TCC_CRTPREFIX --elfinterp=... specify elf interpreter" Sets CONFIG_TCC_ELFINTERP Also the CONFIG_TCC_XXX were renamed to make them look more consistent. Also move the elf_interp definitions to tcc.h.
* Revert "Add a --multiarch-triplet switch to configure"Thomas Preud'homme2011-08-031-124/+35
| | | | This reverts commit 76adc5770f4ab5b1aaa2e5dde6104efc06431fe2.
* Add a --multiarch-triplet switch to configureThomas Preud'homme2011-08-021-35/+124
| | | | | | | | | | | | | Add a --multiarch-triplet switch to configure. The switch will allow files to be search for each default path in path/<triplet> and then path. Default paths handled that way: - CONFIG_TCC_SYSINCLUDE_PATHS - CONFIG_TCC_LIBPATH - path to crt*.o - path to libgcc_s.so.1 Path missing: elf interpreter path (will be handled in another commit)
* allow defining sysroot at compile-timeJoe Soroka2011-07-111-0/+2
|
* Remove useless changes from 31ca000d in configureThomas Preud'homme2011-07-071-31/+15
| | | | | After commit 4d6a4a26e08ef8581c70d29f578a42ab7d738c2d, the changes in configure are no longer needed.
* Fix commit 31ca000dThomas Preud'homme2011-07-051-3/+7
| | | | | * CONFIG_TCC_*LDDIR should not be exported if no --*lddir option is used. * Don't write a : at the beginning of extralddir
* Add multiarch dirs to linker search pathThomas Preud'homme2011-07-051-15/+27
| | | | | | | | | | | By default, tcc search libraries in /lib and /usr/local/lib while crt*.o files are searched in /usr/lib and ld.so is searched in /lib. Unfortunetely the path are hardcoded in source code. This patch allow tcc to look in an other directory and also to look in extra directories. It's then possible to make tcc search libraries in /lib/x86_64-linux-gnu and /usr/local/lib/x86_64-linux-gnu while crt*.o files are searched in /usr/lib/x86_64-linux-gnu and ld.so is searched in /lib/x86_64-linux-gnu.
* Default to create progs with symbols (incl. debug)Thomas Preud'homme2011-06-171-1/+7
| | | | | | | * Set CFLAGS entirely in configure if not already set. * Compile bcheck.c with the same flags as the other source files * Don't strip binaries by default (GB are cheap now) but provide a --strip-binaries option in configure script.
* Support scratchbox, Nokia N900 and qemu arm archsThomas Preud'homme2011-05-161-1/+1
| | | | Add arm, armv5tejl and armv7l to the list of supported arm architectures
* configure: --sharedir defaults to /usr/local/shareHenry Kroll III2010-12-231-2/+2
|
* configure: --sharedir documentation rootHenry Kroll III2010-12-221-25/+41
|
* configure: add --disable-rpath option (Fedora)Henry Kroll III2010-12-201-0/+6
|
* configure: improvements to option --tccdirHenry Kroll III2010-12-201-5/+8
|
* make: new lib/Makefile for libtcc1.a on more platformsgrischka2010-12-041-0/+2
| | | | | | win32/64 cross-compilers now build libtcc1.a and install it together with the windows headers in a 'win32' sub-directory of TCCDIR.
* make cross compilers an expert option in configure --helpHenry Kroll III2010-12-021-2/+3
|
* Add --enable-cygwin option to build on windows with cygwin+mingw32Henry Kroll III2010-12-021-1/+11
|
* split cross libtcc1.a to separate directoriesHenry Kroll III2010-12-021-3/+6
|
* configure: allow changing installation directoryHenry Kroll III2010-11-281-0/+3
|
* info doc: fix --infodir to respect DESTDIR for 'make install'Sergei Trofimovich2010-09-211-1/+1
| | | | | | | | | | | | | | | | | | | | | info files are introduced by commit 3f829d11ff231980383c384df2ae38e369cd8079 This patch helps packagers to avoid problems when install to $DESTDIR >>> Starting src_install make -j3 bindir=/tmp/paludis/dev-lang-tcc-9999/image//usr/bin libdir=/tmp/paludis/dev-lang-tcc-9999/image//usr/lib tccdir=/tmp/paludis/dev-lang-tcc-9999/image//usr/lib/tcc includedir=/tmp/paludis/dev-lang-tcc-9999/image//usr/include docdir=/tmp/paludis/dev-lang-tcc-9999/image//usr/share/doc/tcc-9999 mandir=/tmp/paludis/dev-lang-tcc-9999/image//usr/share/man install mkdir -p "/tmp/paludis/dev-lang-tcc-9999/image//usr/bin" install -m755 tcc "/tmp/paludis/dev-lang-tcc-9999/image//usr/bin" mkdir -p "/tmp/paludis/dev-lang-tcc-9999/image//usr/share/man/man1" install tcc.1 "/tmp/paludis/dev-lang-tcc-9999/image//usr/share/man/man1" mkdir -p /usr/share/info install tcc-doc.info "/usr/share/info" ACCESS DENIED open_wr: /usr/share/info/tcc-doc.info install: cannot create regular file `/usr/share/info/tcc-doc.info': Permission denied make: *** [install] Error 1 /usr/libexec/paludis/utils/emake: emake returned error 2 Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
* Add info file creation into tcc build processThomas Preud'homme2010-09-101-0/+9
| | | | Add info file creation in tcc Makefile
* Add support for GNU/HurdThomas Preud'homme2010-09-101-1/+1
| | | | | + Add i686-AT386 to the list of x86 platform + Define SA_SIGINFO is not defined
* Revert "Use mktemp to generate temp files."Thomas Preud'homme2010-06-231-1/+2
| | | | | Doesn't seem to work on windows This reverts commit 27988c5e6648810db2074a2e80edaf74678e9977.
* Use mktemp to generate temp files.Thomas Preud'homme2010-06-221-2/+1
| | | | | Fix the $RANDOM bashism properly by using mktemp. mktemp is part of MSYS so this should work on UNIXes and Windows