https://issues.dlang.org/show_bug.cgi?id=24389
--- Comment #9 from Iain Buclaw <[email protected]> --- (In reply to Jonathan M Davis from comment #8) > It doesn't look like qsort_r is being used by anything in Phobos right now, > so I don't think that the __asm__ has to actually work in this case in order > to build zlib, though __asm__ like this could definitely pop up again in the > future, since this is something that FreeBSD will sometimes do to change > what's being linked (usually to fix compatibility issues). I don't know if > other OSes do the same. > > Either way, obviously, the closer that we can get to actually using the > __asm__ properly, the better, and gdc and ldc are clearly in a much better > position for that. Alternatively, there's reverting the change that introduced using DMD to build zlib. https://github.com/dlang/phobos/pull/8873 If not resorting back to using $CC for FreeBSD, maybe the zlib sources could be altered to filter out the bad code in the header? https://reviews.freebsd.org/source/src/browse/main/include/stdlib.h$347 #undef __generic? --
