X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCmain.c;h=e1da3c49e031660f5919bfa2b843af118d8e4f35;hb=262e4dc4c54be1913650f53955f58f2aae627105;hp=8f6b7c759142378341568596610222609565f8ba;hpb=5a42a84c00586a5d5435411f0f48a1cb88aa24d8;p=fw%2Fsdcc diff --git a/src/SDCCmain.c b/src/SDCCmain.c index 8f6b7c75..e1da3c49 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -1676,8 +1676,8 @@ linkEdit (char **envp) set *tempSet=NULL; tempSet = appendStrSet(libDirsSet, NULL, DIR_SEPARATOR_STRING); - tempSet = appendStrSet(libDirsSet, NULL, c); - mergeSets(&tempSet, libPathsSet); + tempSet = appendStrSet(tempSet, NULL, c); + mergeSets(&tempSet, libDirsSet); for (s = setFirstItem(tempSet); s != NULL; s = setNextItem(tempSet)) {