[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] New Port
From: |
Brian Tiffin |
Subject: |
Re: [open-cobol-list] New Port |
Date: |
Tue, 06 Dec 2011 23:20:30 -0500 |
User-agent: |
Opera Mail/11.52 (Linux) |
On Mon, 05 Dec 2011 14:52:53 -0500, Tom Chandler <address@hidden>
wrote:
Just a FYI for the list. I have been able to port open-cobol-1.0 over
to run under the Minix3 OS.
Nice.
Not very many changes in the source. One problem is the test
programs. It appears they only compile in a "shared" mode.
I need to compile and test them in a "static" mode.
I take it you won't mind hacking about? The tests/Makefile has
COBC_LIBS =
COB_BIGENDIAN = no
COB_CC = gcc
COB_CFLAGS = -I/usr/local/include
COB_CONFIG_DIR = ${prefix}/share/open-cobol/config
COB_COPY_DIR = ${prefix}/share/open-cobol/copy
COB_EXPORT_DYN = -Wl,--export-dynamic
COB_FIX_LIB = -Wl,--export-dynamic
COB_HAS_INLINE =
COB_LDFLAGS =
COB_LIBRARY_PATH = ${exec_prefix}/lib/open-cobol
COB_LIBS = -L${exec_prefix}/lib -lcob -lm -lgmp -lncurses -ldb -ldl
COB_MODULE_EXT = so
COB_PIC_FLAGS = -fPIC -DPIC
COB_SHARED_OPT = -shared
in it. Those bottom two look like a promising place to start. If the 1.0
sources (I'll admit to having not really touched those ... ever) are
similar, there should be a libcob/.libs hidden libtool directory that is
created during make. In there there should be a static archive of the
runtime (I've never tried this) which you might be able to trick the
aforementioned Makefile to use. With some tracking down of COB_PIC_FLAGS,
COB_SHARED_OPT and some "not safe for work" tweaks to the linkage and the
wonky environment vars that are setup to test not-yet-installed compilers,
static testing might work.
Any ideas would be appreciated.
They may not be wise or good ideas and may cause chasing of wild geese. ;)
Thank You
Tom C
Cheers,
Brian
P.S. I guess I assumed you are talking about make check and not the
NIST85 suite. The tests/cobol85 suite could be a different matter.