LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cross-compiling a static Xfbdev from XFree86 4.3 (https://www.linuxquestions.org/questions/linux-software-2/cross-compiling-a-static-xfbdev-from-xfree86-4-3-a-444171/)

Orkie 05-12-2006 01:17 PM

Cross-compiling a static Xfbdev from XFree86 4.3
 
SOLVED: I had to use CDEBUGFLAGS="-static" when building the server component

Hi

I'm trying to compile a statically linked Xfbdev from Xfree86 4.3. I have been following the instructions here and have successfully built an executable file. However, I need to statically link it for anything to work (the binary runs but complains about the wrong version of libc, so doesn't stay running for long).
here is my host.def:
Code:

#define KDriveXServer              YES
#define KdriveServerExtraDefines -DITSY -DMAXSCREENS=2
#define TinyXServer                YES
#define CrossCompiling            YES
#define ItsyCompilerBug            YES
#undef BuildRandR
#define BuildRandR                YES
#define BuildXInputLib            YES
#define ProjectRoot                /x11arm
#define Freetype2Dir              $(TOP)/extras/freetype2
#define Freetype2LibDir            $(TOP)/exports/lib
#define BuildXTrueType            YES
#define BuildScreenSaverExt        YES
#define BuildScreenSaverLibrary    YES
#define SharedLibXss              YES
#define ServerXdmcpDefines
#define XfbdevServer              YES
#define XipaqServer                YES
#undef DoLoadableServer
#define DoLoadableServer      NO
#define ForceNormalLib          YES

I added the DoLoadableServer option hoping it would build a static binary, but I still got a dynamic one.

Any ideas on how to get this working correctly?

Thanks


All times are GMT -5. The time now is 07:41 AM.