[exim-dev] Patch: Makefile-Base

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Frank Elsner
Ημερομηνία:  
Προς: Exim Development
Αντικείμενο: [exim-dev] Patch: Makefile-Base

Hello,

during the process of building a 64bit version of exim(-4.72) under Solaris 10
we (tubIT.TU-Berlin.DE) encountered problems:

We had to specify many CFLAGS and LDFLAGS to link with our self-compiled
64bit libraries like ldap, openssl ...

But these setting in Local/Makefile and Local/Makefile-SunOS5 weren't used
by the generated Makefile.

We had to patch the Makefile-Base file to get CFLAGS and LDFLAGS used where
required. The Patch is attached. Maybe it should find it's way into the
distribution.


Greetings, Frank Elsner
--- exim-4.72.ORG/OS/Makefile-Base    2009-06-10 09:34:04.000000000 +0200
+++ exim-4.72.NEW/OS/Makefile-Base    2010-07-30 11:03:18.000000000 +0200
@@ -325,8 +325,8 @@
     @echo "$(CC) version.c"
     $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) $(IPV6_INCLUDE) $(TLS_INCLUDE) version.c
     rm -f exim
-    @echo "$(LNCC) -o exim"
-    $(FE)$(PURIFY) $(LNCC) -o exim $(LFLAGS) $(OBJ_EXIM) version.o \
+    @echo "$(LNCC) -c $(CFLAGS) -o exim"
+    $(FE)$(PURIFY) $(LNCC) -o exim $(CFLAGS) $(LFLAGS) $(OBJ_EXIM) version.o \
       routers/routers.a transports/transports.a lookups/lookups.a \
       auths/auths.a pdkim/pdkim.a \
       $(LIBRESOLV) $(LIBS) $(LIBS_EXIM) $(IPV6_LIBS) $(EXTRALIBS) \
@@ -346,7 +346,7 @@
 OBJ_DUMPDB = exim_dumpdb.o util-os.o util-store.o


 exim_dumpdb: $(OBJ_DUMPDB)
-    @echo "$(LNCC) -o exim_dumpdb"
+    @echo "$(LNCC) $(CFLAGS) -o exim_dumpdb"
     $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_dumpdb $(LFLAGS) $(OBJ_DUMPDB) \
       $(LIBS) $(EXTRALIBS) $(DBMLIB)
     @if [ x"$(STRIP_COMMAND)" != x"" ]; then \
@@ -361,7 +361,7 @@
 OBJ_FIXDB = exim_fixdb.o util-os.o util-store.o


 exim_fixdb:  $(OBJ_FIXDB)
-    @echo "$(LNCC) -o exim_fixdb"
+    @echo "$(LNCC) $(CFLAGS) -o exim_fixdb"
     $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_fixdb $(LFLAGS) $(OBJ_FIXDB) \
       $(LIBS) $(EXTRALIBS) $(DBMLIB)
     @if [ x"$(STRIP_COMMAND)" != x"" ]; then \
@@ -376,7 +376,7 @@
 OBJ_TIDYDB = exim_tidydb.o util-os.o util-store.o


 exim_tidydb: $(OBJ_TIDYDB)
-    @echo "$(LNCC) -o exim_tidydb"
+    @echo "$(LNCC) $(CFLAGS) -o exim_tidydb"
     $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_tidydb $(LFLAGS) $(OBJ_TIDYDB) \
       $(LIBS) $(EXTRALIBS) $(DBMLIB)
     @if [ x"$(STRIP_COMMAND)" != x"" ]; then \
@@ -390,7 +390,7 @@


 exim_dbmbuild: exim_dbmbuild.o
     @echo "$(LNCC) -o exim_dbmbuild"
-    $(FE)$(LNCC) -o exim_dbmbuild $(LFLAGS) exim_dbmbuild.o \
+    $(FE)$(LNCC) $(CFLAGS) -o exim_dbmbuild $(LFLAGS) exim_dbmbuild.o \
       $(LIBS) $(EXTRALIBS) $(DBMLIB)
     @if [ x"$(STRIP_COMMAND)" != x"" ]; then \
       echo $(STRIP_COMMAND) exim_dbmbuild; \
@@ -405,7 +405,7 @@
     @echo "$(CC) exim_lock.c"
     $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) exim_lock.c
     @echo "$(LNCC) -o exim_lock"
-    $(FE)$(LNCC) -o exim_lock $(LFLAGS) exim_lock.o  \
+    $(FE)$(LNCC) $(CFLAGS) -o exim_lock $(LFLAGS) exim_lock.o  \
       $(LIBS) $(EXTRALIBS)
     @if [ x"$(STRIP_COMMAND)" != x"" ]; then \
       echo $(STRIP_COMMAND) exim_lock; \
@@ -433,10 +433,10 @@
 eximon.bin: $(EXIMON_EDITME) eximon $(OBJ_MONBIN) \
             ../exim_monitor/em_version.c
     @echo "$(CC) exim_monitor/em_version.c"
-    $(FE)$(CC) -o em_version.o -c \
+    $(FE)$(CC) $(CFLAGS) -o em_version.o -c \
       $(CFLAGS) $(XINCLUDE) -I. ../exim_monitor/em_version.c
     @echo "$(LNCC) -o eximon.bin"
-    $(FE)$(PURIFY) $(LNCC) -o eximon.bin em_version.o $(LFLAGS) $(XLFLAGS) \
+    $(FE)$(PURIFY) $(LNCC) $(CFLAGS) -o eximon.bin em_version.o $(LFLAGS) $(XLFLAGS) \
     $(OBJ_MONBIN) -lXaw -lXmu -lXt -lXext -lX11 $(PCRE_LIBS) \
       $(LIBS) $(LIBS_EXIMON) $(EXTRALIBS) $(EXTRALIBS_EXIMON) -lc
     @if [ x"$(STRIP_COMMAND)" != x"" ]; then \