Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] Re: (PR#9494) Bug: ar without .o files gives error on MacO
Home

[Freeciv-Dev] Re: (PR#9494) Bug: ar without .o files gives error on MacO

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bh@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#9494) Bug: ar without .o files gives error on MacOS X
From: "Marko Lindqvist" <marko.lindqvist@xxxxxxxxxxx>
Date: Sat, 14 Aug 2004 01:26:59 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9494 >

Marko Lindqvist wrote:
> Attached patch builds 
> library only when ftwl is enabled, we have no use for empty library 
> anyway. Does this help?

  Attached is different approach to this problem. It's much uglier 
solution due to extra 'noise' files (empty.c & empty.o). Good news is 
that it does not conflict with my patch in #9551. But I still don't know 
if either patch really fixes MacOS X problems. Please test.


  - Caz


diff -Nurd freeciv/utility/ftwl/Makefile.am freeciv/utility/ftwl/Makefile.am
--- freeciv/utility/ftwl/Makefile.am    2004-08-13 21:32:18.687500000 +0300
+++ freeciv/utility/ftwl/Makefile.am    2004-08-14 11:22:25.593750000 +0300
@@ -42,4 +42,4 @@
 ## Above, note -I../../intl instead of -I$(top_srdir)/intl is deliberate.
 
 libftwl_a_SOURCES = $(BACKEND_X11_FILES) \
-       $(BACKEND_SDL_FILES) $(OTHER_FILES)
+       $(BACKEND_SDL_FILES) $(OTHER_FILES) empty.c
diff -Nurd freeciv/utility/ftwl/empty.c freeciv/utility/ftwl/empty.c
--- freeciv/utility/ftwl/empty.c        1970-01-01 02:00:00.000000000 +0200
+++ freeciv/utility/ftwl/empty.c        2004-08-14 11:23:13.171875000 +0300
@@ -0,0 +1,4 @@
+/* No code here, we need to give compiler some input file
+   even when we don't compile ftwl, so produced library
+   is not totally empty. Empty library would cause
+   problems in MacOS X. */

[Prev in Thread] Current Thread [Next in Thread]