1515 * Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
1616 * Copyright (c) 2015 Research Organization for Information Science
1717 * and Technology (RIST). All rights reserved.
18- * Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved.
18+ * Copyright (c) 2018-2021 Amazon.com, Inc. or its affiliates. All Rights reserved.
1919 * $COPYRIGHT$
2020 *
2121 * Additional copyrights may follow
@@ -359,7 +359,7 @@ static void data_callback(const char *key, const char *value)
359359 char * line ;
360360 opal_asprintf (& line , OPAL_INCLUDE_FLAG "%s" ,
361361 options_data [parse_options_idx ].path_includedir );
362- opal_argv_append_nosize (& options_data [parse_options_idx ].preproc_flags , line );
362+ opal_argv_prepend_nosize (& options_data [parse_options_idx ].preproc_flags , line );
363363 free (line );
364364 }
365365 }
@@ -371,7 +371,7 @@ static void data_callback(const char *key, const char *value)
371371 char * line ;
372372 opal_asprintf (& line , OPAL_LIBDIR_FLAG "%s" ,
373373 options_data [parse_options_idx ].path_libdir );
374- opal_argv_append_nosize (& options_data [parse_options_idx ].link_flags , line );
374+ opal_argv_prepend_nosize (& options_data [parse_options_idx ].link_flags , line );
375375 free (line );
376376 }
377377 } else if (0 == strcmp (key , "opalincludedir" )) {
0 commit comments