Re: [AD] packaging trouble

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


#include <hallo.h>
Peter Wang wrote on Thu Aug 02, 2001 um 04:23:26PM:

> I guess you should do as the error message says and recompile
> `uesd.c' with `-fPIC'.  For a quick check, you can just edit
> `makefile.dep'.  Maybe that will magically fix things.

Buahah, I have found it. Someone forgot the shared options in depmod.sh:

---snip---
--- allegro3937-3937.orig/misc/depmod.sh
+++ allegro3937-3937/misc/depmod.sh
@@ -32,7 +32,7 @@
 
 # module rule
 echo "\$(LIBDIR)/$module: \$(${objlist})"
-echo "	gcc -shared -o \$@ \$(${objlist}) \$(LDFLAGS) $modlibs"
+echo "	gcc -shared \$(ALLEGRO_SHAREDLIB_CFLAGS) -o \$@ \$(${objlist}) \$(LDFLAGS) $modlibs"
 echo ""
 
 # explicit object rules (pass -DALLEGRO_MODULE)
@@ -42,9 +42,9 @@
     ext=`echo $file | sed 's,^.*\.,,'`
     echo "\$(OBJDIR)/module/$name\$(OBJ): \$(srcdir)/$file"
     if test "$ext" = "c"; then
-      echo "	\$(COMPILE_NORMAL) -DALLEGRO_MODULE -c \$(srcdir)/$file -o \$(OBJDIR)/module/$name\$(OBJ)"
+      echo "	\$(COMPILE_NORMAL) \$(ALLEGRO_SHAREDLIB_CFLAGS) -DALLEGRO_MODULE -c \$(srcdir)/$file -o \$(OBJDIR)/module/$name\$(OBJ)"
     else
-      echo "	\$(COMPILE_S_NORMAL) -DALLEGRO_MODULE -c \$(srcdir)/$file -o \$(OBJDIR)/module/$name\$(OBJ)"
+      echo "	\$(COMPILE_S_NORMAL) \$(ALLEGRO_SHAREDLIB_CFLAGS) -DALLEGRO_MODULE -c \$(srcdir)/$file -o \$(OBJDIR)/module/$name\$(OBJ)"
     fi
   fi
 done
---snap---

Gruss/Regards,
Eduard.
-- 
!netgod:*! time flies when youre using linux
!doogie:*! yeah, infinite loops in 5 seconds.
!Teknix:*! has anyone re-tested that with 2.2.x ?
!netgod:*! yeah, 4 seconds now



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/