This patch resolves undefined reference to symbols in libdl.
Error message before this:
/usr/bin/ld: ir_emit.o: in function `ir_resolve_sym_name':
ir_emit.c:249: undefined reference to `dlsym'
/usr/bin/ld: ir_disasm.o: in function `ir_disasm_resolver':
ir_disasm.c:302: undefined reference to `dladdr'
collect2: error: ld returned 1 exit status
This is a series of enhancements for ir-test and related Makefile
for Linux and Windows.
UpdateLog:
1) Make ir-test run from any directory
2) add --help option and print program usage
3) Enable user to specify test folders and/or files to run
4) Check unsupported option and print help usage
5) Update Makefile to use new ir-test options
6) some code refactory
Signed-off-by: Tony Su <tao.su@intel.com>
Reviewed-by : Dmitry Stogov
Reviewed-by : Anatol Belski
This comes with the initial feature to query CPUID on x86. Supported are
both GCC based build and MSVC builds targeting Windows.
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
A small optimization to combine common pieces in the makefile.
- Use static pattern rules for the same operation
- Group headers prerequisities into own targets
- Reduce dups like objects to be listed just once in a var, etc.
Signed-off-by: Anatol Belski <ab@php.net>