# To subscribers of the xforms list from "R. Lahaye" <lahaye@users.sourceforge.net> :
Hi,
Apart from the previously reported linking problems with Open Xforms
(see emails by Peter S Galbraith), I applied a few more modifications to
Makefiles, in order to get Open Xforms properly compiled on my FreeBSD-4.5 PC.
This email contains the summary of all my modifications needed to the
tarball of Open Xforms (xforms-0.9999.tgz):
Defines in Imakefile:
#define Optimize YES
#define UseSystemXpm YES
#define HaveStrerror YES
#define StaticLink NO
#define BuildGL YES
#define BuildShared YES
#define Solaris64Bit YES
#define OptimizationLevel -O3
I did "xmkmf -a" and then modified the following files:
lib/Makefile
fdesign/Makefile
fd2ps/Makefile
demos/Makefile
I modified the Makefile's, because I have no idea how to add these
modifications to the Imakefile's!
-- lib/Makefile (line 822) -----------------------------------------------
change:
(cd .; $(CC) -o ./$@~ $(SHLIBLDFLAGS) -Wl,-soname,$$SONAME $(OBJS)
$(REQUIREDLIBS) ); \
into:
(cd .; $(CC) -o ./$@~ $(SHLIBLDFLAGS) -Wl,-soname,$$SONAME $(OBJS)
$(REQUIREDLIBS) -lc -L/usr/local/lib -ljpeg -L/usr/X11R6/lib -lXpm -lGL -lGLU
-pthread); \
--------------------------------------------------------------------------
-- fdesign/Makefile (line 790) -------------------------------------------
change:
$(CCLINK) -o $@ $(LDOPTIONS) $(OBJS) $(LOCAL_LIBRARIES) $(LDLIBS)
$(EXTRA_LOAD_FLAGS)
into:
$(CCLINK) -o $@ -L../lib $(LDOPTIONS) $(OBJS) $(LOCAL_LIBRARIES) $(LDLIBS)
$(EXTRA_LOAD_FLAGS) -pthread
--------------------------------------------------------------------------
-- fd2ps/Makefile (line 797) ---------------------------------------------
change:
$(CCLINK) -o $@ $(LDOPTIONS) $(OBJS) $(LOCAL_LIBRARIES) $(LDLIBS)
$(EXTRA_LOAD_FLAGS)
into:
$(CCLINK) -o $@ -L../lib $(LDOPTIONS) $(OBJS) $(LOCAL_LIBRARIES) $(LDLIBS)
$(EXTRA_LOAD_FLAGS) -pthread
--------------------------------------------------------------------------
-- demos/Makefile (lines 261 and 263) ------------------------------------
change:
CCLINK = $(CC)
CXXLINK = $(CXX)
into:
CCLINK = $(CC) -pthread
CXXLINK = $(CXX) -pthread
---------------------------------------------------------------------------
Do these modifications make sense?
I hope this is useful to other FreeBSD-fellows.
I also hope it will soon be added properly to the Imakefiles.
Regards,
Rob.
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Wed May 01 2002 - 13:54:19 EDT