Commit 4d258c7a authored by rdubner's avatar rdubner
Browse files

Include -fPIC to COBCD to get good compilations in Centos8

parent 697fa613
......@@ -8,12 +8,13 @@ COBCD=/usr/local/bin/cobcd
CWD=$(shell basename `pwd`)
# Yes, this next thing needs to be done in a better way
VERSION=2.2
VERSION=1.1
.PHONY : all
all:
$(MAKE) -C cobst
$(MAKE) -C sfix
$(MAKE) -C samples
.PHONY : test
test:
......
......@@ -286,11 +286,11 @@ if test X$result = X"0" ; then
if test X$result = X"0" ; then
if test X$ECHO != X"" ; then
echo COB_CFLAGS="-Wa,-L,-anchls=$BASENAME.lst" $COBC $COBCDFLAGS -S $COBCDXM -d -g \
echo COB_CFLAGS="-fPIC -Wa,-L,-anchls=$BASENAME.lst" $COBC $COBCDFLAGS -S $COBCDXM -d -g \
--fgen-c-line-directives --fgen-c-labels \
-T $BASENAME.cbl.lst --tlines=0 --tsymbols $PREOPTIONS $SOURCEFILE
fi
COB_CFLAGS="-Wa,-L,-anchls=$BASENAME.lst" $COBC $COBCDFLAGS -S $COBCDXM -d -g \
COB_CFLAGS="-fPIC -Wa,-L,-anchls=$BASENAME.lst" $COBC $COBCDFLAGS -S $COBCDXM -d -g \
--fgen-c-line-directives --fgen-c-labels \
-T $BASENAME.cbl.lst --tlines=0 --tsymbols $PREOPTIONS $SOURCEFILE
result=$?
......@@ -302,11 +302,11 @@ if test X$result = X"0" ; then
if test X$result = X"0" ; then
if test X$ECHO != X"" ; then
echo COB_CFLAGS="-Wa,-L,-anchls=$BASENAME.lst" $COBC $COBCDFLAGS -c $COBCDXM -d -g \
echo COB_CFLAGS="-fPIC -Wa,-L,-anchls=$BASENAME.lst" $COBC $COBCDFLAGS -c $COBCDXM -d -g \
--fgen-c-line-directives --fgen-c-labels \
-T $BASENAME.cbl.lst --tlines=0 --tsymbols $PREOPTIONS $SOURCEFILE
fi
COB_CFLAGS="-Wa,-L,-anchls=$BASENAME.lst" $COBC $COBCDFLAGS -c $COBCDXM -d -g \
COB_CFLAGS="-fPIC -Wa,-L,-anchls=$BASENAME.lst" $COBC $COBCDFLAGS -c $COBCDXM -d -g \
--fgen-c-line-directives --fgen-c-labels \
-T $BASENAME.cbl.lst --tlines=0 --tsymbols $PREOPTIONS $SOURCEFILE
result=$?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment