From: Pete B. <pb...@gm...> - 2010-10-11 18:04:47
|
OK, I tried various -Xlinker options, with the --kill-at and --with-stdcall-alias, but no success. "-Xlinker --output-def -Xlinker .libs/libusb-1.0.def" will generate a .def file alright, but it's still missing the stdcall aliases. Basically, this is the minimal we need for a .def automated generation we can work with: LIBRARY EXPORTS (...) libusb_init (...) libusb_init@4 = libusb_init (...) There needs to be at least (and preferably only) one aliased call with the @ decoration for every non decorated entry. Without the aliased call, we cannot have DLL interchangeability. If you think you can help with something better than the current create_def() from autogen.sh [1] (whose only problem is that it generates more decorated aliases than required), let me know. Regards, /Pete [1] http://git.libusb.org/?p=libusb-pbatard.git;a=blob;f=autogen.sh Still waiting on the following to be processed (NB: corrected patch or requested info might appear further down the thread): o [5/8] remove unneeded sanity check http://marc.info/?l=libusb-devel&m=128628361810536 o [6/8] removed WinUsb_QueryInterfaceSettings call http://marc.info/?l=libusb-devel&m=128628370510703 o [7/8] fixed erroneous checks on SetupDi calls http://marc.info/?l=libusb-devel&m=128628379010853 o [8/8] fixed shadow declaration warnings on index http://marc.info/?l=libusb-devel&m=128628399011226 o missing -Wl, prefix on --add-stdcall-alias http://marc.info/?l=libusb-devel&m=128490818025708 o fixes missing $(AM_LDFLAGS) in libusb/Makefile.am http://marc.info/?l=libusb-devel&m=128636830622055 o dpfp_threaded fixes http://marc.info/?l=libusb-devel&m=128637757004632 |