15
15
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
16
16
* Copyright (c) 2015 Research Organization for Information Science
17
17
* 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.
19
19
* $COPYRIGHT$
20
20
*
21
21
* Additional copyrights may follow
@@ -359,7 +359,7 @@ static void data_callback(const char *key, const char *value)
359
359
char * line ;
360
360
opal_asprintf (& line , OPAL_INCLUDE_FLAG "%s" ,
361
361
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 );
363
363
free (line );
364
364
}
365
365
}
@@ -371,7 +371,7 @@ static void data_callback(const char *key, const char *value)
371
371
char * line ;
372
372
opal_asprintf (& line , OPAL_LIBDIR_FLAG "%s" ,
373
373
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 );
375
375
free (line );
376
376
}
377
377
} else if (0 == strcmp (key , "opalincludedir" )) {
0 commit comments