Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Solaris
murlock:
I've tried to compile CodeBlocks with Sun Studio
There is a problem because when linking executable, bad flag are used, any tips ?
use of -fPIC instead of -KPIC ?
please check http://www.murlock.org/wiki/?wakka=CodeBlocksENSunStudio for output errors,
I can't manage to put them here
afb:
--- Quote from: murlock on November 24, 2006, 12:24:05 pm ---I've tried to compile CodeBlocks with Sun Studio
There is a problem because when linking executable, bad flag are used, any tips ?
use of -fPIC instead of -KPIC ?
--- End quote ---
This is a bug with the Code::Blocks configure.in, it hardcodes those flags:
--- Code: ---CXXFLAGS="$CXXFLAGS $PCH_FLAGS -fPIC -DPIC"
--- End code ---
Try taking those out from there, and let me know if it works for you then...
afb:
--- Quote from: http://www.murlock.org/wiki/?wakka=CodeBlocksEN --- * You have to remove thoses two lines from bootstrap :
--- Code: ---export WANT_AUTOMAKE='1.7'
export WANT_AUTOCONF='2.5'
--- End code ---
--- End quote ---
Why do you need to remove those two ? (I believe they were added for Gentoo)
Do they conflict with some Sun magic ? (not a problem to wrap in "if Linux", but)
--- Quote ---For one file, you'll have an error for compiling ( strlen undefined) due to missing #include <string.h>,
--- End quote ---
Which file was this ? Seems like a harmless fix, so report it as a bug/patch.
FYI: wxAUI/wxGTK LDFLAGS and wxHIDE_READONLY will be fixed, eventually...
murlock:
--- Quote from: afb on November 24, 2006, 12:44:03 pm ---
--- Quote from: http://www.murlock.org/wiki/?wakka=CodeBlocksEN --- * You have to remove thoses two lines from bootstrap :
--- Code: ---export WANT_AUTOMAKE='1.7'
export WANT_AUTOCONF='2.5'
--- End code ---
--- End quote ---
Why do you need to remove those two ? (I believe they were added for Gentoo)
Do they conflict with some Sun magic ? (not a problem to wrap in "if Linux", but)
--- End quote ---
the script abort with this error :
--- Code: ---./bootstrap: WANT_AUTOMAKE=1.7: is not an identifier
--- End code ---
Maybe due to difference between sun sh and gnu/linux sh ?
It seems that sh don't like export VAR=VALUE, with
--- Code: ---WANT_AUTOMAKE=1.7
export WANT_AUTOMAKE
--- End code ---
it works
--- Quote ---
--- Quote ---For one file, you'll have an error for compiling ( strlen undefined) due to missing #include <string.h>,
--- End quote ---
Which file was this ? Seems like a harmless fix, so report it as a bug/patch.
FYI: wxAUI/wxGTK LDFLAGS and wxHIDE_READONLY will be fixed, eventually...
--- End quote ---
I'll report later :)
afb:
--- Quote from: murlock on November 24, 2006, 03:50:00 pm ---
--- Quote from: afb on November 24, 2006, 12:44:03 pm ---Why do you need to remove those two ? (I believe they were added for Gentoo)
Do they conflict with some Sun magic ? (not a problem to wrap in "if Linux", but)
--- End quote ---
the script abort with this error :
--- Code: ---./bootstrap: WANT_AUTOMAKE=1.7: is not an identifier
--- End code ---
Maybe due to difference between sun sh and gnu/linux sh ?
It seems that sh don't like export VAR=VALUE, with
--- Code: ---WANT_AUTOMAKE=1.7
export WANT_AUTOMAKE
--- End code ---
it works
--- End quote ---
Cool, that change should go in for all platforms then.
Will look at it with the other configure.in changes.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version