Skip to contentSkip to conversation

XFree86 4.1.0, Linux/ia64, and various video cards

Linux-ia64 Bill Nottingham 2 participants 2 messages Jul 26, 2001 – Jul 27, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines · Branden Robinson

The tests were conducted using a patched version of 4.1.0 for Debian and Progeny that works around a problem with PIC symbols being absent in static libraries, which powerpc, ia64, and hppa (among possible others) do not tolerate. At the same time, PIC symbols in X server modules cause the X server to segfault. I'll be submitting this patch to XFree86 shortly.

That's easily fixed with config hackery. I'm surprised this hasn't been added yet.

Bill

xc/config/cf/Imake.rules renamed from xc/config/cf/Imake.rules.shared +2 -2
@@ -2015,11 +2015,11 @@
  * NormalLibObjCompile - compile fragment for a normal library object file
  */
 #ifndef NormalLibObjCompile
-#define NormalLibObjCompile(options) ObjectCompile(options)
+#define NormalLibObjCompile(options) ObjectCompile(options $(PICFLAGS))
 #endif
 
 #ifndef NormalLibObjCplusplusCompile
-#define NormalLibObjCplusplusCompile(options) ObjectCplusplusCompile(options)
+#define NormalLibObjCplusplusCompile(options) ObjectCplusplusCompile(options $(PICFLAGS))
 #endif
 
 /*
#1 lore raw
Quoted 9 lines · Bill Nottingham
Quoted 5 lines · Branden Robinson

The tests were conducted using a patched version of 4.1.0 for Debian and Progeny that works around a problem with PIC symbols being absent in static libraries, which powerpc, ia64, and hppa (among possible others) do not tolerate. At the same time, PIC symbols in X server modules cause the X server to segfault. I'll be submitting this patch to XFree86 shortly.

That's easily fixed with config hackery. I'm surprised this hasn't been added yet.

The fix you posted has been tested, but doesn't catch all the cases. I'll be posting my patch in a few minutes.

Signature · 4 lines
Branden Robinson          | GPG signed/encrypted mail welcome
[email protected]       | 1024D/9C0BCBFB
Consultant                | D5F6 D4C9 E25B 3D37 068C
Progeny Linux Systems     | 72E8 0F42 191A 9C0B CBFB