Re: FVWM: Compiling fvwm 2.0.42

From: Clive Messer <clive_at_epos.demon.co.uk>
Date: Fri, 26 Apr 1996 17:13:05 +0100 (BST)

On Fri, 26 Apr 1996 chuck_hines_at_VNET.IBM.COM wrote:

> Several people have reported problems like this, although they weren't
> claiming to be defining XPM...
>
> So, what I'm guessing that you are setting FvwmCompiler and
> FvwmCompilerFlags, correct? If so, it's probably my screwup w/
> FvwmCompilerFlags that is causing problems here.
>
> Change this in Fvwm.tmpl:
>
>
> #ifdef FvwmCompilerFlags
> CFLAGS = FvwmCompilerFlags
> #endif
>
> which may be causing -Ddefines to be lost, to:
>
> #ifdef FvwmCompilerFlags
> CDEBUGFLAGS = FvwmCompilerFlags
> #endif
>
> then remake the makefiles & rebuild and see if that works better.

Yes, thats exactly the problem.
I posted the following to the list but for some reason it never made it
out ?????


If FvwmCompiler flags is defined in Fvwm.tmpl. ie.

#define FvwmCompilerFlags -O6 -fomit-frame-pointer -m486

then later in Fvwm.tmpl .....

#ifdef FvwmCompilerFlags
        CFLAGS = FvwmCompilerFlags

overrides the CFLAGS def in the xmkmf generated Makefiles ....

CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(THREADS_CFLAGS) $(ALLDEFINES)
                                                      
and consequently because

ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) \
$(PROTO_DEFINES) $(THREADS_DEFINES) $(DEFINES)

and

DEFINES = $(OPTION_DEFINES) $(XPM_DEFINES) $(AUDIO_DEFINES)

the necessary defs and includes are not included/defined.

Fvwm.tmpl should change to ...

#ifdef FvwmCompilerFlags
        CDEBUGFLAGS = FvwmCompilerFlags


--- Fvwm.tmpl-old Thu Apr 25 12:11:51 1996
+++ Fvwm.tmpl Thu Apr 25 12:12:25 1996
_at_@ -249,7 +249,7 @@
         CC = FvwmCompiler
 #endif
 #ifdef FvwmCompilerFlags
- CFLAGS = FvwmCompilerFlags
+ CDEBUGFLAGS = FvwmCompilerFlags
 #endif

 #ifdef FvwmBinDir
_at_@ -301,7 +301,7 @@
 #endif /* HPArchitecture */
 #endif /* AlphaArchitecture */

- FVWM_LIBS = -L$(FVWM_SRCDIR)/libs -l$(LIB) $(XPM_LIBRARIES) $(KLUDGE_LIBS)
+ FVWM_LIBS = $(FVWM_SRCDIR)/libs/lib$(LIB).a $(XPM_LIBRARIES) $(KLUDGE_LIBS)
 FVWM_DEPLIB = $(FVWM_SRCDIR)/libs/lib$(LIB).a

     DEFINES = $(OPTION_DEFINES) $(XPM_DEFINES) $(AUDIO_DEFINES)

Clive.
-- 
C Messer. Epos Systems. UK.  |
<clive_at_epos.demon.co.uk>     |   "I pressed her thigh and death smiled."
<clive_at_epos.easynet.co.uk>   |    Jim Morrison.                       
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Apr 26 1996 - 18:55:04 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:58 BST