[Pythonmac-SIG] disutils link arguments BEFORE object files?

Seth Delackner seth@jtan.com
Thu, 19 Sep 2002 17:02:24 -0700


I'm trying to get pyopengl to compile on OS X, and a stumbling block 
that I had to brute force around was that a link step needed to have 
"-framework AGL" on the command line BEFORE the object files.

The distutils extra_link_args variable is attached to the command line 
after everything else, so is there some way to get what I want?  I would 
think there would be just a simple "pre_object_args" variable, 
considering that this is not uncommon (requiring libraries to be 
included before objects on the linker command line).