From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRt1f-000566-Nf for qemu-devel@nongnu.org; Fri, 17 Jul 2009 15:23:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRt1a-00053W-60 for qemu-devel@nongnu.org; Fri, 17 Jul 2009 15:23:22 -0400 Received: from [199.232.76.173] (port=34643 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRt1Z-00053Q-O9 for qemu-devel@nongnu.org; Fri, 17 Jul 2009 15:23:17 -0400 Received: from mx2.redhat.com ([66.187.237.31]:38259) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MRt1Z-00054X-85 for qemu-devel@nongnu.org; Fri, 17 Jul 2009 15:23:17 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6HJNGU7025881 for ; Fri, 17 Jul 2009 15:23:16 -0400 From: quintela@redhat.com Date: Fri, 17 Jul 2009 21:20:53 +0200 Message-Id: Subject: [Qemu-devel] [PATCH 00/37] Generate a proper LIBS variable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Juan Quintela From: Juan Quintela Hi Instead of having *_LIBS variables, generate a proper LIBS variable in configure and use it in Makefiles. - Remove lots of other ifdef in Makefiles. - s/HOST_SOLARIS/CONFIG_SOLARIS/ for coherence - s/HAVE_FDT/CONFIG_FDT/ - Patches are very small/trivials to make easy bisect problems in other architectures/SSOOs ToDo: - Make the same treatment for CFLAGS, CPPFLAGS and LDFLAGS. - Once done that, generate the config-host.h from config-host.mak (as done in the target directories). I have compiled it in linux x86_64 and crosscompiled to windows. Testers wanted for: - Mac OS X - Solaris (specially sparc) - BSD's It should just work (famous last words) Thanks in advance, Juan. Juan Quintela (37): change HOST_SOLARIS to CONFIG_SOLARIS{_VERSION} Remove SP_CFLAGS and SP_LDFLAGS target_arch2 is redefined unconditionally later remove CONFIG_ from VNC_TLS_{LIBS,FLAGS} use same algorithm for testing and remove CONFIG_ from VNC_SASL_{LIBS,FLAGS} remove CONFIG_ from BLUEZ_{LIBS,FLAGS} make fmod also use FMOD_{LIBS,CFLAGS} make oss use OSS_LIBS move printing of config-host.mak variables to end of generation more specific config.mak can overwrote more general config.mak generate CPPFLAGS and LIBS on ./configure fold PTHREADLIBS and CLOCKLIBS on generic LIBS CONFIG_SOLARIS always want -lsockt -lnsl -lresolv Add -static in configure if needed generate CONFIG_WIN32 libraries in configure fold VDE_LIBS on generic LIBS fold CURL_LIBS on generic LIBS fold BRLAPI_LIBS on generic LIBS fold CURSES_LIBS on generic LIBS fold XEN_LIBS on generic LIBS fold BLUEZ_LIBS on generic LIBS fold VNC_TLS_LIBS on generic LIBS fold VNC_SASL_LIBS on generic LIBS Rename HAVE_FDT to CONFIG_FDT and define it also in Makefile Refactor code to remove one #ifdef CONFIG_FDT fold FDT_LIBS on generic LIBS fold NEEDS_LIBSUNMATH on generic variables fold FMOD_LIBS on generic LIBS fold OSS_LIBS on generic LIBS fold ALSA libs on generic LIBS fold DSOUND libs on generic LIBS fold Pulse Audio libs on generic LIBS fold ESD libs on generic LIBS fold COCOA_LIBS on generic LIBS fold SDL_LIBS on generic LIBS remove rt variable, we can assign directly LIBS Makefile | 30 +------ Makefile.hw | 2 +- Makefile.target | 80 +------------------ configure | 175 ++++++++++++++++++++++++---------------- cpu-exec.c | 10 +- dyngen-exec.h | 2 +- fpu/softfloat-native.c | 13 ++- fpu/softfloat-native.h | 9 +- fpu/softfloat.h | 2 +- hw/petalogix_s3adsp1800_mmu.c | 8 +- hw/ppc440_bamboo.c | 2 +- hw/ppce500_mpc8544ds.c | 4 +- kqemu.c | 2 +- osdep.c | 6 +- target-mips/cpu.h | 2 +- target-ppc/kvm_ppc.c | 2 +- tcg/sparc/tcg-target.h | 2 +- 17 files changed, 148 insertions(+), 203 deletions(-)